Skip to content

Commit 1268f2f

Browse files
author
Alex Patterson
committed
don't send sentry in dev
1 parent 723dfbf commit 1268f2f

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎sentry.client.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ Sentry.init({
2727
blockAllMedia: true,
2828
}),
2929
],
30+
enabled: process.env.NODE_ENV !== 'development',
3031
});

‎sentry.edge.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Sentry.init({
1313

1414
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1515
debug: false,
16+
enabled: process.env.NODE_ENV !== 'development',
1617
});

‎sentry.server.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Sentry.init({
1515

1616
// Uncomment the line below to enable Spotlight (https://spotlightjs.com)
1717
// spotlight: process.env.NODE_ENV === 'development',
18-
18+
enabled: process.env.NODE_ENV !== 'development',
1919
});

0 commit comments

Comments
 (0)