diff --git a/sentry.client.config.js b/sentry.client.config.js index 7903834..16f42d6 100644 --- a/sentry.client.config.js +++ b/sentry.client.config.js @@ -9,7 +9,7 @@ const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN Sentry.init({ dsn: SENTRY_DSN, debug: true, - enabled: process.env.NODE_DEV === 'production' + enabled: process.env.NODE_ENV === 'production' // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps diff --git a/sentry.server.config.js b/sentry.server.config.js index 949b09d..8f374ea 100644 --- a/sentry.server.config.js +++ b/sentry.server.config.js @@ -9,7 +9,7 @@ const SENTRY_DSN = process.env.SENTRY_DSN Sentry.init({ dsn: SENTRY_DSN, debug: true, - enabled: process.env.NODE_DEV === 'production' + enabled: process.env.NODE_ENV=== 'production' // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps