Skip to content

Commit 722887d

Browse files
committed
feat: add environment configuration to Sentry initialization
1 parent 2cc9f19 commit 722887d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Sentry.init({
1414
// Setting this option to true will send default PII data to Sentry.
1515
// For example, automatic IP address collection on events
1616
sendDefaultPii: true,
17+
environment: process.env.VITE_ENVIRONMENT,
1718
});
1819

1920
const isDev = process.argv.includes('--dev');

0 commit comments

Comments
 (0)