Skip to content

Commit

Permalink
Update sentry.server.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq authored Nov 14, 2023
1 parent d4aee1e commit 190c72a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/web/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
import * as Sentry from '@sentry/nextjs';

const SENTRY_DNS = process.env.SENTRY_DNS || process.env.NEXT_PUBLIC_SENTRY_DNS;
Sentry.init({
dsn: SENTRY_DNS,

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: process.env.NEXT_PUBLIC_SENTRY_DEBUG && process.env.NEXT_PUBLIC_SENTRY_DEBUG === 'true' ? true : false
});
if (SENTRY_DNS) {
Sentry.init({
dsn: SENTRY_DNS,

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: process.env.NEXT_PUBLIC_SENTRY_DEBUG && process.env.NEXT_PUBLIC_SENTRY_DEBUG === 'true' ? true : false
});
}

0 comments on commit 190c72a

Please sign in to comment.