@@ -162,22 +162,23 @@ module.exports = withSentryConfig(nextConfig, {
162162
163163 // Upload a larger set of source maps for prettier stack traces (increases build time)
164164 widenClientFileUpload : true ,
165-
166- // Automatically tree-shake Sentry logger statements to reduce bundle size
167- disableLogger : true ,
168-
169- // Enables automatic instrumentation of Vercel Cron Monitors
170- // See the following for more information:
171- // https://docs.sentry.io/product/crons/
172- // https://vercel.com/docs/cron-jobs
173- automaticVercelMonitors : true ,
174-
175- reactComponentAnnotation : {
176- enabled : true ,
177- } ,
178-
179- unstable_sentryWebpackPluginOptions : {
180- applicationKey : 'sentry-docs' ,
165+
166+ webpack : {
167+ treeshake : {
168+ // Automatically tree-shake Sentry logger statements to reduce bundle size
169+ removeDebugLogging : true ,
170+ } ,
171+ // Enables automatic instrumentation of Vercel Cron Monitors
172+ // See the following for more information:
173+ // https://docs.sentry.io/product/crons/
174+ // https://vercel.com/docs/cron-jobs
175+ automaticVercelMonitors : true ,
176+ reactComponentAnnotation : {
177+ enabled : true ,
178+ } ,
179+ unstable_sentryWebpackPluginOptions : {
180+ applicationKey : 'sentry-docs' ,
181+ } ,
181182 } ,
182183
183184 _experimental : {
0 commit comments