diff --git a/sentry.client.config.ts b/sentry.client.config.ts index c3bb276..6c3907f 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -6,10 +6,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13", - - // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + enabled: process.env.NODE_ENV === "production", }); diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index 014f9fc..2a062d8 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -7,10 +7,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13", - - // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + enabled: process.env.NODE_ENV === "production", }); diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 109d580..1d4c796 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -6,10 +6,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13", - - // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, + enabled: process.env.NODE_ENV === "production", });