Skip to content

Commit a75b801

Browse files
committed
make Sentry enabled only in production environment
1 parent 3636702 commit a75b801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Sentry.init({
99
tunnel: "/api/sentry-tunnel",
1010
// Add optional integrations for additional features
1111
integrations: [Sentry.replayIntegration()],
12-
12+
enabled: process.env.NODE_ENV === "production",
1313
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
1414
tracesSampleRate: 1,
1515
// Enable logs to be sent to Sentry

0 commit comments

Comments
 (0)