From 52f16604c1fdbfed75fa0fe6c7878a876fdc53d3 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Tue, 1 Jul 2025 15:26:51 -0400 Subject: [PATCH] feat: Use a separate project for Client Sentry (#22183) --- .env.example | 1 + apps/web/instrumentation-client.ts | 2 +- turbo.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 8df31c4c61..f01c944344 100644 --- a/.env.example +++ b/.env.example @@ -164,6 +164,7 @@ SENTRY_PROJECT= SENTRY_AUTH_TOKEN= # Used for capturing exceptions and logging messages NEXT_PUBLIC_SENTRY_DSN= +NEXT_PUBLIC_SENTRY_DSN_CLIENT= SENTRY_DEBUG= SENTRY_MAX_SPANS= SENTRY_SAMPLE_RATE= diff --git a/apps/web/instrumentation-client.ts b/apps/web/instrumentation-client.ts index ee23de9c0a..5236834ace 100644 --- a/apps/web/instrumentation-client.ts +++ b/apps/web/instrumentation-client.ts @@ -4,7 +4,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ - dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, + dsn: process.env.NEXT_PUBLIC_SENTRY_DSN_CLIENT, sampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE ?? "1.0") || 1.0, // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. diff --git a/turbo.json b/turbo.json index 8c3aece83e..9dc1c9b248 100644 --- a/turbo.json +++ b/turbo.json @@ -32,6 +32,7 @@ "NEXT_PUBLIC_BOOKER_NUMBER_OF_DAYS_TO_LOAD", "NEXT_PUBLIC_IS_E2E", "NEXT_PUBLIC_SENTRY_DSN", + "NEXT_PUBLIC_SENTRY_DSN_CLIENT", "NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE_MONTHLY", "NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRODUCT_ID", "NEXT_PUBLIC_STRIPE_PUBLIC_KEY",