Skip to content

Commit

Permalink
dev: Adjust sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Aug 9, 2024
1 parent 5af3aa8 commit b541bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const environment = {
servers: process.env.NATS_URL || 'nats://localhost:4222',
},
sentry: {
enabled: process.env.SENTRY_ENABLED === 'true' || process.env.NODE_ENV === 'production',
dsn: process.env.SENTRY_DSN || 'https://[email protected]/2',
enabled: !!process.env.SENTRY_DSN && (process.env.SENTRY_ENABLED === 'true' || process.env.NODE_ENV === 'production'),
dsn: process.env.SENTRY_DSN,
tracesSampleRate: +(process.env.SENTRY_TRACES_SAMPLE_RATE || 1),
},
};

0 comments on commit b541bdd

Please sign in to comment.