From ff9b5b2195c3ff11029009ffbb3c8dc161eaaa83 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 30 Mar 2026 04:56:10 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20hardcoded=20Sentry=20DSN=20fall?= =?UTF-8?q?back=20=E2=80=94=20use=20env=20var=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VITE_SENTRY_DSN is already set in Railway as a build arg. The hardcoded fallback was unnecessary and triggered GitHub secret scanning alerts. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/instrument.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/instrument.ts b/frontend/src/instrument.ts index 99c59e92..87ae697c 100644 --- a/frontend/src/instrument.ts +++ b/frontend/src/instrument.ts @@ -1,7 +1,7 @@ import * as Sentry from "@sentry/react"; Sentry.init({ - dsn: import.meta.env.VITE_SENTRY_DSN || "https://23937b8c0cea2484f6a9d5b97d0b7d4b@o4511005918887936.ingest.us.sentry.io/4511005926883328", + dsn: import.meta.env.VITE_SENTRY_DSN, environment: import.meta.env.MODE, integrations: [