Skip to content

Commit fe62b8d

Browse files
aggmoulikclaude
andauthored
fix: replace deprecated disableLogger with webpack.treeshake.removeDebugLogging (#1948)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c598909 commit fe62b8d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

apps/dashboard/next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ const sentryConfig = {
3434
transpileClientSDK: false,
3535

3636
// Tree-shake Sentry logger statements to reduce bundle size
37-
disableLogger: true,
37+
webpack: {
38+
treeshake: {
39+
removeDebugLogging: true,
40+
},
41+
},
3842
};
3943

4044
export default withSentryConfig(nextConfig, sentryConfig);

apps/status-page/next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ const sentryConfig = {
7272
transpileClientSDK: false,
7373

7474
// Tree-shake Sentry logger statements to reduce bundle size
75-
disableLogger: true,
75+
webpack: {
76+
treeshake: {
77+
removeDebugLogging: true,
78+
},
79+
},
7680
};
7781

7882
export default withSentryConfig(nextConfig, sentryConfig);

apps/web/next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ const sentryConfig = {
250250
transpileClientSDK: false,
251251

252252
// Tree-shake Sentry logger statements to reduce bundle size
253-
disableLogger: true,
253+
webpack: {
254+
treeshake: {
255+
removeDebugLogging: true,
256+
},
257+
},
254258
};
255259

256260
export default withSentryConfig(nextConfig, sentryConfig);

0 commit comments

Comments
 (0)