Skip to content

cloudflareAdapter

cloudflareAdapter(bindings): GatewayAdapter

Defined in: src/adapters/cloudflare.ts:114

Create a GatewayAdapter using Cloudflare-native stores.

Rate limiting priority: Durable Objects (strongly consistent) > KV (eventually consistent) > none.

Pass executionCtx to enable waitUntil (for traffic shadow and other background work). Pass env to enable dispatchBinding (for service binding dispatch via the adapter).

CloudflareAdapterBindings

GatewayAdapter