diff --git a/sentry.client.config.ts b/sentry.client.config.ts index 93a3367..4fce3d3 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -5,7 +5,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ - dsn: 'https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160', + dsn: process.env.SENTRY_DSN, // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 0.1, diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index 4f4d15f..44c22b6 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -3,10 +3,10 @@ // Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ -import * as Sentry from "@sentry/nextjs"; +import * as Sentry from '@sentry/nextjs'; Sentry.init({ - dsn: "https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160", + dsn: process.env.SENTRY_DSN, // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 1, diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 6fcff9d..1702024 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -2,10 +2,10 @@ // The config you add here will be used whenever the server handles a request. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ -import * as Sentry from "@sentry/nextjs"; +import * as Sentry from '@sentry/nextjs'; Sentry.init({ - dsn: "https://c25e0f77069805e271e110773a67be7a@o4505001794404352.ingest.us.sentry.io/4507246358364160", + dsn: process.env.SENTRY_DSN, // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 1, @@ -15,5 +15,4 @@ Sentry.init({ // uncomment the line below to enable Spotlight (https://spotlightjs.com) // spotlight: process.env.NODE_ENV === 'development', - });