diff --git a/sentry.client.config.js b/sentry.client.config.js index 8587bce..7903834 100644 --- a/sentry.client.config.js +++ b/sentry.client.config.js @@ -8,7 +8,8 @@ const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN Sentry.init({ dsn: SENTRY_DSN, - release: undefined + debug: true, + enabled: process.env.NODE_DEV === '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 0d024cf..949b09d 100644 --- a/sentry.server.config.js +++ b/sentry.server.config.js @@ -8,7 +8,8 @@ const SENTRY_DSN = process.env.SENTRY_DSN Sentry.init({ dsn: SENTRY_DSN, - release: undefined + debug: true, + enabled: process.env.NODE_DEV === '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