Skip to content

buildCf

function buildCf(flareJsonFile: JsonObject, env?: Record<string, string | undefined>): CloudflareAdapter

Builds a Cloudflare adapter bound to a bundled flare.json and optional env.

On Cloudflare there is no filesystem, so the config is supplied at module scope rather than read from disk.

flareJsonFile JsonObject

env? Record<string, string | undefined>

returns CloudflareAdapter

Learn: Deploy

Last updated: