From 3ee33b5c5a1a9cdcddfed07f488610be2cfe4ae0 Mon Sep 17 00:00:00 2001 From: swve Date: Thu, 29 Aug 2024 20:43:04 +0200 Subject: [PATCH] fix: sentry frontend enablement status --- apps/web/sentry.client.config.ts | 2 +- apps/web/sentry.edge.config.ts | 2 +- apps/web/sentry.server.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/sentry.client.config.ts b/apps/web/sentry.client.config.ts index 587da74b..27500872 100644 --- a/apps/web/sentry.client.config.ts +++ b/apps/web/sentry.client.config.ts @@ -18,7 +18,7 @@ Sentry.init({ // in development and sample at a lower rate in production replaysSessionSampleRate: 0.1, - enabled: process.env.NODE_ENV === 'development', + enabled: process.env.NODE_ENV != 'development', // You can remove this option if you're not planning to use the Sentry Session Replay feature: integrations: [ diff --git a/apps/web/sentry.edge.config.ts b/apps/web/sentry.edge.config.ts index 6a988865..f9c8988e 100644 --- a/apps/web/sentry.edge.config.ts +++ b/apps/web/sentry.edge.config.ts @@ -11,7 +11,7 @@ Sentry.init({ // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 0.5, - enabled: process.env.NODE_ENV === 'development', + enabled: process.env.NODE_ENV != 'development', // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, diff --git a/apps/web/sentry.server.config.ts b/apps/web/sentry.server.config.ts index a79227f6..559a397f 100644 --- a/apps/web/sentry.server.config.ts +++ b/apps/web/sentry.server.config.ts @@ -13,7 +13,7 @@ Sentry.init({ // 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 === 'development', + enabled: process.env.NODE_ENV != 'development', // Uncomment the line below to enable Spotlight (https://spotlightjs.com) // spotlight: process.env.NODE_ENV === 'development',