Optional ReadonlycacheServe CAPABILITIES.CACHE from a KV namespace. Omitted registers nothing.
Optional ReadonlydurableServe CAPABILITIES.REALTIME_BACKPLANE from a Durable Object namespace.
Omitted registers nothing.
ReadonlyenvThe Worker's env, from import { env } from 'cloudflare:workers'.
Passed in rather than imported by this package: cloudflare:workers is
unresolvable outside a Worker toolchain, so importing it here would break
type-checking on every other runtime.
Optional ReadonlymessagingServe CAPABILITIES.MESSAGING from a Queues producer binding. Omitted
registers nothing.
Optional ReadonlyqueueServe CAPABILITIES.QUEUE from a Queues producer binding. Omitted
registers nothing.
Optional ReadonlyrequireBindings that must be present. register() throws naming every absent
one, so a missing wrangler.toml stanza fails at startup instead of on
the first request that needs it.
Optional ReadonlystorageServe CAPABILITIES.STORAGE from an R2 bucket. Omitted registers nothing.
Optional ReadonlywaitThe platform's background-work sink, from
import { waitUntil } from 'cloudflare:workers' (available from
compatibility date 2025-08-08).
Omitting it leaves bindings.waitUntil() running the promise without
extending the invocation — correct off Cloudflare Workers, and a silent
truncation risk on it, so pass it whenever deploying to Workers.
Options for
CloudflarePlugin.Example: Bindings only
Example: Also serving cache and storage from the platform
Since
0.2.0