add sentry to investigate 500 errors

This commit is contained in:
2025-03-04 15:46:50 -05:00
parent a73323ae8b
commit 8f946d50d8
11 changed files with 2013 additions and 22 deletions
+15 -1
View File
@@ -1,6 +1,7 @@
import type { NextConfig } from "next";
import createMDX from "@next/mdx";
import createBundleAnalyzer from "@next/bundle-analyzer";
import { withSentryConfig } from "@sentry/nextjs";
import * as mdxPlugins from "./lib/helpers/remark-rehype-plugins";
const nextConfig: NextConfig = {
@@ -155,4 +156,17 @@ const withMDX = createMDX({
},
});
export default withBundleAnalyzer(withMDX(nextConfig));
export default withSentryConfig(withBundleAnalyzer(withMDX(nextConfig)), {
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
silent: !process.env.CI,
widenClientFileUpload: true,
autoInstrumentAppDirectory: true,
autoInstrumentMiddleware: false,
autoInstrumentServerFunctions: true,
tunnelRoute: "/_instrument/",
disableLogger: true,
automaticVercelMonitors: true,
telemetry: false,
});