mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-25 16:05:39 -04:00
add sentry to investigate 500 errors
This commit is contained in:
+15
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user