Skip to content

Open-source status page, incident response and uptime monitoring

fix: replace deprecated disableLogger with webpack.treeshake.removeDebugLogging (#1948)

Moulik Aggarwalfe62b8d57861
diff --git a/apps/dashboard/next.config.ts b/apps/dashboard/next.config.ts
index 249c7d2ea..225ef6bc6 100644
--- a/apps/dashboard/next.config.ts
+++ b/apps/dashboard/next.config.ts
@@ -34,7 +34,11 @@ const sentryConfig = {
transpileClientSDK: false,
// Tree-shake Sentry logger statements to reduce bundle size
- disableLogger: true,
+ webpack: {
+ treeshake: {
+ removeDebugLogging: true,
+ },
+ },
};
export default withSentryConfig(nextConfig, sentryConfig);
diff --git a/apps/status-page/next.config.ts b/apps/status-page/next.config.ts
index cc423812b..9ff1620b6 100644
--- a/apps/status-page/next.config.ts
+++ b/apps/status-page/next.config.ts
@@ -72,7 +72,11 @@ const sentryConfig = {
transpileClientSDK: false,
// Tree-shake Sentry logger statements to reduce bundle size
- disableLogger: true,
+ webpack: {
+ treeshake: {
+ removeDebugLogging: true,
+ },
+ },
};
export default withSentryConfig(nextConfig, sentryConfig);
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index 0c00986ca..5a12cef93 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -250,7 +250,11 @@ const sentryConfig = {
transpileClientSDK: false,
// Tree-shake Sentry logger statements to reduce bundle size
- disableLogger: true,
+ webpack: {
+ treeshake: {
+ removeDebugLogging: true,
+ },
+ },
};
export default withSentryConfig(nextConfig, sentryConfig);