Env

codemode-gatewaysourcetypescript
Path: codemode-gateway/src/types/env.tsRelative: src/types/env.tsSubproject: codemode-gatewayCategory: codemode-gateway
Lines: 57Bytes: 2,396Imports: 0Exports: 1

Content Preview

  1. /**
  2. * Worker environment bindings for codemode-gateway.
  3. *
  4. * `LOADER` is the `worker_loaders` binding used by `DynamicWorkerExecutor` to
  5. * provision isolated sandbox Workers. `GATEWAY_TOKEN` is the bearer secret that
  6. * gates `POST /execute` (provisioned via `wrangler secret put GATEWAY_TOKEN`).
  7. *
  8. * Defined explicitly (rather than via `wrangler types`) so the contract is
  9. * deterministic and does not depend on wrangler's handling of the closed-beta
  10. * `worker_loaders` binding shape.
  11. */
  12. exp