fix: sentry disabled

This commit is contained in:
wonderlandpark 2021-05-09 10:34:45 +09:00
parent 63f662bc60
commit 540d596c25
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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