Skip to content

Commit 991338b

Browse files
authored
chore(platform): Move deprecated webpack options (#17231)
Updates config according to https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/webpack-setup/
1 parent 37befa3 commit 991338b

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

next.config.ts

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)