Commit 6ac11c3
signaling: type TURN secrets via committed .d.ts (fix CI typecheck)
`wrangler types` only emits TURN_KEY_ID / TURN_API_TOKEN into the generated
worker-configuration.d.ts when they're present in the local (gitignored)
.env — so a dev machine typechecks but a fresh CI checkout doesn't, and
`env.TURN_KEY_ID` fails. These are production-only secrets (set via
`wrangler secret put`), never in wrangler.jsonc, so wrangler can't generate
their types in CI by design.
Declare them in a committed no-import .d.ts that merges into the global
`Env` (typed `string` to match wrangler's own output, so the local
generated declaration and this one coexist without conflict). No secret
values committed; CI and dev both typecheck.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0d5a439 commit 6ac11c3
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments