Skip to content

Commit cc8fdad

Browse files
committed
Run sentry on prop
1 parent 08bde5e commit cc8fdad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/initSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const Sentry =
44
: require('@sentry/electron/dist/renderer');
55

66
export function initSentry() {
7-
if (process.env.SENTRY_DSN) {
7+
if (process.env.NODE_ENV === 'production' && process.env.SENTRY_DSN) {
88
Sentry.init({
99
dsn: process.env.SENTRY_DSN,
1010
});

0 commit comments

Comments
 (0)