@@ -117,4 +117,46 @@ const nextConfig = {
117117 } ,
118118} ;
119119
120- module . exports = nextConfig ;
120+ module . exports = nextConfig ;
121+
122+ // Injected content via Sentry wizard below
123+
124+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
125+
126+ module . exports = withSentryConfig ( module . exports , {
127+ // For all available options, see:
128+ // https://www.npmjs.com/package/@sentry /webpack-plugin#options
129+
130+ org : "sentry" ,
131+ project : "metaverse-rang-front-nextjs" ,
132+ sentryUrl : "https://sentry.irpsc.com/" ,
133+
134+ // Only print logs for uploading source maps in CI
135+ silent : ! process . env . CI ,
136+
137+ // For all available options, see:
138+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
139+
140+ // Upload a larger set of source maps for prettier stack traces (increases build time)
141+ widenClientFileUpload : true ,
142+
143+ // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
144+ // This can increase your server load as well as your hosting bill.
145+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
146+ // side errors will fail.
147+ // tunnelRoute: "/monitoring",
148+
149+ webpack : {
150+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
151+ // See the following for more information:
152+ // https://docs.sentry.io/product/crons/
153+ // https://vercel.com/docs/cron-jobs
154+ automaticVercelMonitors : true ,
155+
156+ // Tree-shaking options for reducing bundle size
157+ treeshake : {
158+ // Automatically tree-shake Sentry logger statements to reduce bundle size
159+ removeDebugLogging : true ,
160+ } ,
161+ } ,
162+ } ) ;
0 commit comments