Deploy & Embed
Static hosting, Workers, local servers and embedding.
Choose a destination
Static hosting — upload the output of
zfb build(defaultdist/) to a static host. Inspect the built output withzfb preview. For a subpath, configurebase, rebuild, and verify links and assets at that prefix.Cloudflare Workers — use the Cloudflare adapter and
prerender = falsefor request-time routes. Node.js and Wrangler are required. With the adapter configured, preview delegates to Wrangler.Local server — see Desktop deployment for an application that spawns the CLI.
Library embedding — see Embed as library for the host-controlled integration boundary and its limits.
There is no zfb deploy command. Use your host’s deployment tools.
Revision History
CreatedUpdated