Skip to content

Commit

Permalink
refactor: disable sentry in local
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinusnathaniel committed Jul 3, 2024
1 parent 91be92d commit 7a938c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const APP_ENV = process.env.APP_ENV;

// eslint-disable-next-line import/prefer-default-export
export function register() {
if (process.env.NODE_ENV === 'development') {
return;
}

if (process.env.NEXT_RUNTIME === 'nodejs') {
Sentry.init({
dsn: SENTRY_DSN,
Expand Down

0 comments on commit 7a938c3

Please sign in to comment.