@@ -38,4 +38,40 @@ const nextConfig = {
3838 } ,
3939} ;
4040
41+ // Injected content via Sentry wizard below
42+
43+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
44+
45+ module . exports = withSentryConfig ( module . exports , {
46+ // For all available options, see:
47+ // https://www.npmjs.com/package/@sentry /webpack-plugin#options
48+
49+ org : "communitycenter" ,
50+ project : "stardewapp" ,
51+
52+ // Only print logs for uploading source maps in CI
53+ silent : ! process . env . CI ,
54+
55+ // For all available options, see:
56+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
57+
58+ // Upload a larger set of source maps for prettier stack traces (increases build time)
59+ widenClientFileUpload : true ,
60+
61+ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
62+ // This can increase your server load as well as your hosting bill.
63+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
64+ // side errors will fail.
65+ tunnelRoute : "/monitoring" ,
66+
67+ // Automatically tree-shake Sentry logger statements to reduce bundle size
68+ disableLogger : true ,
69+
70+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
71+ // See the following for more information:
72+ // https://docs.sentry.io/product/crons/
73+ // https://vercel.com/docs/cron-jobs
74+ automaticVercelMonitors : true ,
75+ } ) ;
76+
4177module . exports = nextConfig ;
0 commit comments