alepha@docs:~/docs/reference/providers$
cat CloudflareContainerProvider.md | pretty
1 min read
Last commit:

#CloudflareContainerProvider

#Import

typescript
1import { CloudflareContainerProvider } from "alepha/containers";

#Overview

Cloudflare Workers (workerd) container provider.

Routes proxy calls through the Cloudflare Containers binding bound on env.<NAME>, using a single shared instance per container (getContainer(env.NAME, "shared")). The binding is generated by BuildCloudflareTask.enhanceContainers from the $container primitives discovered in the app.

The runtime env object is pulled from the Alepha store key cloudflare.env — the worker entry point publishes it there on every fetch (__alepha.set("cloudflare.env", env)).