From 540d596c250ecca551c100c5b4f3368a8c8aed8d Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Sun, 9 May 2021 10:34:45 +0900 Subject: [PATCH] fix: sentry disabled --- sentry.client.config.js | 2 +- sentry.server.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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