Repository navigation
Commit 030f2f8
authored
cloud: drop hardcoded VITE_PUBLIC_SENTRY_DSN from wrangler.jsonc (#382)
The frontend Sentry DSN was committed in wrangler.jsonc `vars`. Move it
to a Wrangler secret (same pattern as SENTRY_DSN, DATABASE_URL, WORKOS_*)
so it's not in source and persists across every deploy path (secrets are
never deleted by deployments, regardless of --keep-vars).
The client bundle continues to get the value at build time via Vite
reading process.env.VITE_PUBLIC_SENTRY_DSN under `op run --env-file=.env.production`.
One-time setup after deploying this change:
op run --env-file=.env.production -- sh -c 'printf "%s" "$VITE_PUBLIC_SENTRY_DSN" | bunx wrangler secret put VITE_PUBLIC_SENTRY_DSN'1 parent 8fa1357 commit 030f2f8
2 files changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
0 commit comments