How to deploy to Cloudflare Workers.
-
wrangler.tomlis configured with the correctaccount_id -
~/.cloudflare/mcp-tokenexists and is valid - D1 database is created (
wrangler d1 create <name>)
devenv shell -- bunx wrangler typesjust typecheck # devenv shell -- tsc --noEmitjust lint # devenv shell -- oxlint --type-awaredevenv shell -- vitest runjust deploy # devenv shell -- bunx wrangler deploydevenv shell -- bunx wrangler tailUse Cloudflare Observability MCP to check error rate and latency after deployment.
CI runs devenv tasks run typecheck:backend typecheck:frontend on three OSes. Lint, test, and vitest are run locally before push but are not part of the CI pipeline.