@@ -17,3 +17,47 @@ module.exports = {
1717 defaultLocale : 'en' ,
1818 } ,
1919} ;
20+
21+ // Injected content via Sentry wizard below
22+
23+ const { withSentryConfig } = require ( '@sentry/nextjs' ) ;
24+
25+ module . exports = withSentryConfig ( module . exports , {
26+ // For all available options, see:
27+ // https://github.com/getsentry/sentry-webpack-plugin#options
28+
29+ org : 'lab-lab-lab' ,
30+ project : 'music-cpr-prod' ,
31+
32+ // Only print logs for uploading source maps in CI
33+ silent : ! process . env . CI ,
34+
35+ // For all available options, see:
36+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
37+
38+ // Upload a larger set of source maps for prettier stack traces (increases build time)
39+ widenClientFileUpload : true ,
40+
41+ // Automatically annotate React components to show their full name in breadcrumbs and session replay
42+ reactComponentAnnotation : {
43+ enabled : true ,
44+ } ,
45+
46+ // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
47+ // This can increase your server load as well as your hosting bill.
48+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
49+ // side errors will fail.
50+ // tunnelRoute: "/monitoring",
51+
52+ // Hides source maps from generated client bundles
53+ hideSourceMaps : true ,
54+
55+ // Automatically tree-shake Sentry logger statements to reduce bundle size
56+ disableLogger : true ,
57+
58+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
59+ // See the following for more information:
60+ // https://docs.sentry.io/product/crons/
61+ // https://vercel.com/docs/cron-jobs
62+ automaticVercelMonitors : true ,
63+ } ) ;
0 commit comments