env.d.ts 475 B

12345678910
  1. /**
  2. * Secrets are set with `wrangler secret put`, so they are deliberately absent from
  3. * wrangler.jsonc (this repo is public) and `wrangler types` cannot see them. Declared
  4. * here by interface merging so the worker type-checks with or without a local
  5. * `.dev.vars`. Anything listed here may be missing at runtime — check before use.
  6. */
  7. interface Env {
  8. /** Shared secret for `POST /admin/rollup`. Unset ⇒ the route does not exist (404). */
  9. ADMIN_TOKEN: string;
  10. }