Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
🧹 remove sentry dsn (#261)
Thibault Le Ouay126375021a98
diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex cf93119b9..e9d2aab0f 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -49,4 +49,6 @@ PROJECT_ID_VERCEL=TEAM_ID_VERCEL=VERCEL_AUTH_BEARER_TOKEN=-NEXT_PUBLIC_URL=\ No newline at end of file+NEXT_PUBLIC_URL=++NEXT_PUBLIC_SENTRY_DSN=''diff --git a/apps/web/sentry.client.config.ts b/apps/web/sentry.client.config.tsindex fe3052203..6a5a19138 100644--- a/apps/web/sentry.client.config.ts+++ b/apps/web/sentry.client.config.ts@@ -5,8 +5,10 @@import { CaptureConsole as CaptureConsoleIntegration } from "@sentry/integrations";import * as Sentry from "@sentry/nextjs";+import { env } from "@/env";+Sentry.init({- dsn: "https://f20616b5573f2a39dab718d99c8d9e38@o4505782661349376.ingest.sentry.io/4505782662791168",+ dsn: env.NEXT_PUBLIC_SENTRY_DSN,// Adjust this value in production, or use tracesSampler for greater controltracesSampleRate: 0,diff --git a/apps/web/sentry.edge.config.ts b/apps/web/sentry.edge.config.tsindex 343184943..95d1b0b58 100644--- a/apps/web/sentry.edge.config.ts+++ b/apps/web/sentry.edge.config.ts@@ -5,8 +5,10 @@import { CaptureConsole as CaptureConsoleIntegration } from "@sentry/integrations";import * as Sentry from "@sentry/nextjs";+import { env } from "@/env";+Sentry.init({- dsn: "https://f20616b5573f2a39dab718d99c8d9e38@o4505782661349376.ingest.sentry.io/4505782662791168",+ dsn: env.NEXT_PUBLIC_SENTRY_DSN,// Adjust this value in production, or use tracesSampler for greater controltracesSampleRate: 0,diff --git a/apps/web/sentry.server.config.ts b/apps/web/sentry.server.config.tsindex e6b0f7485..8ce0e00b1 100644--- a/apps/web/sentry.server.config.ts+++ b/apps/web/sentry.server.config.ts@@ -5,8 +5,10 @@import { CaptureConsole as CaptureConsoleIntegration } from "@sentry/integrations";import * as Sentry from "@sentry/nextjs";+import { env } from "@/env";+Sentry.init({- dsn: "https://f20616b5573f2a39dab718d99c8d9e38@o4505782661349376.ingest.sentry.io/4505782662791168",+ dsn: env.NEXT_PUBLIC_SENTRY_DSN,// Adjust this value in production, or use tracesSampler for greater controltracesSampleRate: 0,diff --git a/apps/web/src/env.ts b/apps/web/src/env.tsindex e448aad04..da7769001 100644--- a/apps/web/src/env.ts+++ b/apps/web/src/env.ts@@ -23,6 +23,7 @@ export const env = createEnv({NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: z.string().min(1),NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: z.string(),NEXT_PUBLIC_URL: z.string(),+ NEXT_PUBLIC_SENTRY_DSN: z.string(),},runtimeEnv: {CLERK_SECRET_KEY: process.env.CLERK_SECRET_KEY,@@ -44,5 +45,6 @@ export const env = createEnv({process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY,STRIPE_WEBHOOK_SECRET_KEY: process.env.STRIPE_WEBHOOK_SECRET_KEY,NEXT_PUBLIC_URL: process.env.NEXT_PUBLIC_URL,+ NEXT_PUBLIC_SENTRY_DSN: process.env.NEXT_PUBLIC_SENTRY_DSN,},});