Skip to content

Commit

Permalink
disable sentry properly outside of production
Browse files Browse the repository at this point in the history
  • Loading branch information
kasumi-1 committed Oct 29, 2024
1 parent 1e00772 commit fda7bba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
enabled: process.env.NODE_ENV === 'production'
});
2 changes: 2 additions & 0 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,

enabled: process.env.NODE_ENV === 'production'
});
2 changes: 2 additions & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,

enabled: process.env.NODE_ENV === 'production'
});

0 comments on commit fda7bba

Please sign in to comment.