Ship · first-party adapter
Deploy to Cloudflare
The first Presolve adapter targets Cloudflare Workers Static Assets. It validates the compiler publication, creates a provider projection, and hands the immutable asset inventory to Wrangler.
Executable loaders and server actions are rejected. The adapter never silently turns arbitrary application JavaScript into a Worker runtime.
1. Authenticate Wrangler
pnpm exec wrangler whoamipnpm exec wrangler loginUse browser login for local work. In CI, provide scoped Cloudflare credentials through the environment and never commit secret values.
2. Verify and prepare
pnpm checkpnpm buildpnpm deploy:preparePreparation writes .presolve/cloudflare/ and verifies the digest inventory without uploading it.
3. Deploy
pnpm deployThe adapter validates the publication again before Wrangler uploads it. Workers Static Assets then serves the generated routes and their matching files.
Repository hygiene
- Ignore generated
dist/and.presolve/directories. - Commit application source and explicit provider configuration.
- Keep
.dev.vars,.env*, Wrangler tokens, and account secrets out of source. - Deploy the complete matching resumability inventory.