From a900408c3beb84db004baf0259757a0c3e0eb5b8 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 9 Mar 2026 00:36:14 -0400 Subject: [PATCH] fix: hardcode Sentry DSN to ensure it's available at build time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vite env vars must be present during build — VITE_SENTRY_DSN was likely undefined in Railway's build step, causing Sentry to silently not init. DSN is a public client key (shipped in every browser bundle), not a secret. Co-Authored-By: Claude Opus 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 70a3f5db..d59877dc 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, + dsn: "https://23937b8c0cea2484f6a9d5b97d0b7d4b@o4511005918887936.ingest.us.sentry.io/4511005926883328", environment: import.meta.env.MODE, integrations: [