@@ -5,3 +5,47 @@ module.exports = {
55 taint : true ,
66 } ,
77} ;
8+
9+
10+ // Injected content via Sentry wizard below
11+
12+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
13+
14+ module . exports = withSentryConfig (
15+ module . exports ,
16+ {
17+ // For all available options, see:
18+ // https://github.com/getsentry/sentry-webpack-plugin#options
19+
20+ org : "codingcatdev" ,
21+ project : "main-codingcat-dev" ,
22+ authToken : process . env . SENTRY_AUTH_TOKEN ,
23+
24+ // Only print logs for uploading source maps in CI
25+ silent : ! process . env . CI ,
26+
27+ // For all available options, see:
28+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
29+
30+ // Upload a larger set of source maps for prettier stack traces (increases build time)
31+ widenClientFileUpload : true ,
32+
33+ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
34+ // This can increase your server load as well as your hosting bill.
35+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
36+ // side errors will fail.
37+ tunnelRoute : "/monitoring" ,
38+
39+ // Hides source maps from generated client bundles
40+ hideSourceMaps : true ,
41+
42+ // Automatically tree-shake Sentry logger statements to reduce bundle size
43+ disableLogger : true ,
44+
45+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
46+ // See the following for more information:
47+ // https://docs.sentry.io/product/crons/
48+ // https://vercel.com/docs/cron-jobs
49+ automaticVercelMonitors : true ,
50+ }
51+ ) ;
0 commit comments