fix: hardcode Sentry DSN to ensure it's available at build time
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user