diff --git a/src/logger/sentry/setup/index.ts b/src/logger/sentry/setup/index.ts index 9c4cc451e4..6437d749ac 100644 --- a/src/logger/sentry/setup/index.ts +++ b/src/logger/sentry/setup/index.ts @@ -20,7 +20,7 @@ const release = process.env.SENTRY_RELEASE || pkgJson.version const dist = process.env.SENTRY_DIST || 'dev' init({ - enabled: !__DEV__, + enabled: !__DEV__ && !!process.env.SENTRY_DSN, autoSessionTracking: false, dsn: process.env.SENTRY_DSN, debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production