Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1011 Bytes

File metadata and controls

55 lines (35 loc) · 1011 Bytes

Deployment

How to deploy to Cloudflare Workers.


Prerequisites

  • wrangler.toml is configured with the correct account_id
  • ~/.cloudflare/mcp-token exists and is valid
  • D1 database is created (wrangler d1 create <name>)

Steps

1. Generate binding types

devenv shell -- bunx wrangler types

2. Type check

just typecheck        # devenv shell -- tsc --noEmit

3. Lint

just lint              # devenv shell -- oxlint --type-aware

4. Run integration tests

devenv shell -- vitest run

5. Deploy

just deploy             # devenv shell -- bunx wrangler deploy

6. Verify production

devenv shell -- bunx wrangler tail

Use Cloudflare Observability MCP to check error rate and latency after deployment.

CI/CD

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.