Minor Changes
-
#16175
d8b1fcaThanks @jamesopstad! - Allow Worker bindings to be included conditionallyBinding entries set to
false,null, orundefinedare now omitted fromenv. Generated environment types make conditionally included bindings optional.export default defineConfig(({ mode }) => ({ worker: { name: "my-worker", compatibilityDate: "2026-10-09", env: { PRODUCTION_KV: mode === "production" && bindings.kv({ id: "production-kv-id" }), STAGING_API_ORIGIN: mode === "staging" ? bindings.text("https://staging.example.com") : undefined, }, }, }));