Skip to content

Commit 52f1660

Browse files
authored
feat: Use a separate project for Client Sentry (calcom#22183)
1 parent c98c060 commit 52f1660

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ SENTRY_PROJECT=
164164
SENTRY_AUTH_TOKEN=
165165
# Used for capturing exceptions and logging messages
166166
NEXT_PUBLIC_SENTRY_DSN=
167+
NEXT_PUBLIC_SENTRY_DSN_CLIENT=
167168
SENTRY_DEBUG=
168169
SENTRY_MAX_SPANS=
169170
SENTRY_SAMPLE_RATE=

apps/web/instrumentation-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as Sentry from "@sentry/nextjs";
55

66
Sentry.init({
7-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
7+
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN_CLIENT,
88

99
sampleRate: parseFloat(process.env.SENTRY_SAMPLE_RATE ?? "1.0") || 1.0,
1010
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"NEXT_PUBLIC_BOOKER_NUMBER_OF_DAYS_TO_LOAD",
3333
"NEXT_PUBLIC_IS_E2E",
3434
"NEXT_PUBLIC_SENTRY_DSN",
35+
"NEXT_PUBLIC_SENTRY_DSN_CLIENT",
3536
"NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE_MONTHLY",
3637
"NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRODUCT_ID",
3738
"NEXT_PUBLIC_STRIPE_PUBLIC_KEY",

0 commit comments

Comments
 (0)