From fb7928259ac7b42f860793bc4ab81231ec729dcb Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Sep 2024 09:44:28 +0100 Subject: [PATCH] disable Sentry in dev --- sentry.client.config.ts | 5 +---- sentry.edge.config.ts | 5 +---- sentry.server.config.ts | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) 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", });