diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index b583f1aa..4ca98ae9 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -48,9 +48,9 @@ class CustomLogger implements LoggerService { async function initializeSentry() { if ( - !process.env.SENTRY_DSN && - !process.env.SENTRY_ORG && - !process.env.SENTRY_PROJECT && + !process.env.SENTRY_DSN || + !process.env.SENTRY_ORG || + !process.env.SENTRY_PROJECT || !process.env.SENTRY_AUTH_TOKEN ) { Logger.error('Missing environment variable: SENTRY_DSN')