Skip to content

Commit

Permalink
general: turn off sentry on localhost - really (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz authored Jan 28, 2025
1 parent c947c75 commit fe8ffe4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 5 additions & 2 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

import * as Sentry from '@sentry/nextjs';

const enabled = process.env.NODE_ENV === 'production';
Sentry.init({
enabled: process.env.NODE_ENV === 'production',
dsn: 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591',
enabled,
dsn: enabled
? 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591'
: undefined,
release: process.env.sentryRelease,

// Adjust this value in production, or use tracesSampler for greater control
Expand Down
8 changes: 6 additions & 2 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@

import * as Sentry from '@sentry/nextjs';

const enabled = process.env.NODE_ENV === 'production';

Sentry.init({
enabled: process.env.NODE_ENV === 'production',
dsn: 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591',
enabled,
dsn: enabled
? 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591'
: undefined,
release: process.env.sentryRelease,

// Adjust this value in production, or use tracesSampler for greater control
Expand Down
7 changes: 5 additions & 2 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

import * as Sentry from '@sentry/nextjs';

const enabled = process.env.NODE_ENV === 'production';
Sentry.init({
enabled: process.env.NODE_ENV === 'production',
dsn: 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591',
enabled,
dsn: enabled
? 'https://79cd9dbaeb0f4d0f868e2d4574f8b7e2@o332956.ingest.us.sentry.io/1858591'
: undefined,
release: process.env.sentryRelease,

// Adjust this value in production, or use tracesSampler for greater control
Expand Down

0 comments on commit fe8ffe4

Please sign in to comment.