Saltar al contenido
Foldocs
En esta páginaGenerated infrastructure
Despliegue

Cloudflare with Alchemy

Deploy a generated Foldocs project to Cloudflare Workers static assets.

Generated infrastructure

Select Cloudflare when creating the application:

sh
pnpm create foldocs@latest my-docs --deployment cloudflare

This adds alchemy.run.ts, .env.example, the alchemy development dependency, and scripts for Cloudflare development, deployment, and teardown. Projects created without this option contain none of those files or package entries.

Deploy

sh
cp .env.example .env
pnpm deploy

Authenticate Cloudflare through your local environment or CI and set an Alchemy password for encrypted state. The included Worker serves static assets with SPA fallback disabled, preserving directory routes and real not-found responses.

One-click deployment

For one-click deployment, publish the project to GitHub and point Cloudflare's deploy button at that repository. Store CLOUDFLARE_API_TOKEN, ALCHEMY_PASSWORD, and remote-state credentials as encrypted variables.

Last updated 2 ago 2026