Choose Your Deployment
Choose between Cloudflare Workers Builds and GitHub Actions for releasing your app.
Both release paths deploy apps/web-cloudflare to Cloudflare Workers with native D1 (DB), R2 (R2_BUCKET), and Cloudflare Email Sending. Decide where builds and releases should run, then prepare your production resources.
Which Path Fits Your Product?
Cloudflare Workers Builds
Connect your GitHub repository in the Cloudflare dashboard. Pushes and merges to your production branch build and publish automatically.
GitHub Actions
Run the included Deploy Cloudflare Worker workflow manually. It previews under workerd and verifies remote D1 migrations before publishing.
| Dimension | Cloudflare Workers Builds | GitHub Actions |
|---|---|---|
| Trigger | Automatic on push or merge to the connected production branch | Manual via GitHub Actions UI or gh CLI |
| Build environment | Cloudflare-managed Linux build environment | GitHub ubuntu-latest runner |
| Pre-release gates | Run D1 migration checks and smoke checks separately | Built-in code checks, local workerd smoke test, and strict remote D1 check |
| Post-deploy check | Review dashboard build logs and verify manually | Automatically runs health and smoke checks on your production domain |
| Best for | Solo iteration, automatic branch deploys, minimal GitHub secret setup | Controlled production releases with automated safety gates |
Note for Windows users
On native Windows, develop locally with pnpm dev:cf. Because OpenNext has limited support for native Windows, use either remote Linux path above for production builds and releases. See OpenNext's Windows support notes.
Want to go all in on Cloudflare from the command line?
For a new product, explore MuseMVP Flare. Flare uses TanStack Start and Cloudflare’s Vite plugin, and its CLI handles Cloudflare resource setup, D1 migrations, Worker secrets, deployment, and smoke checks.
Before You Deploy
Complete these four steps before configuring your release pipeline:
Finish local setup and brand configuration
Complete Quick Start and Brand Settings so the app runs and signs in cleanly on your machine.
Plan your domain and dedicated production resources
Choose your production hostname, prepare separate D1 and R2 resources, and verify your Cloudflare account quotas and permissions.
Connect core services as needed
Set up real Email (Cloudflare Email Sending), then configure Payments, OAuth, and Storage for the features you enable.
Deploy and verify before live traffic
Follow the Cloudflare Workers deployment guide, then walk through the Release Checklist.
Application Boundaries
Scope and migration notes
This guide covers the template's apps/web-cloudflare application. If you are moving existing users or business data from another app, plan your data migration first and verify sign-in, storage, and all enabled services before cutting over traffic. Platform costs depend on your Cloudflare account, usage, and enabled services.