Skip to content

Commit

Permalink
fix: Sentry env variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshPatel5940 committed Feb 18, 2024
1 parent ea58f5d commit 5606b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5606b96

Please sign in to comment.