Skip to content

Commit 319e4b6

Browse files
committed
Set correct environment on Sentry
1 parent 9e49825 commit 319e4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const plugins = [
8989
dsn:
9090
'https://[email protected]/5289132',
9191
// Optional settings, see https://docs.sentry.io/clients/node/config/#optional-settings
92-
environment: process.env.NODE_ENV,
92+
environment: isProduction ? 'production' : 'staging',
9393
enabled: isProduction || isStaging,
9494
ignoreErrors: [
9595
// that's a real bug we have, but I'm ignoring it for now.

0 commit comments

Comments
 (0)