Cloudflare Workers deployment
Proxy and Admin are separate Worker projects sharing one D1 database (binding commonly DB).
Checklist
Section titled “Checklist”- Create D1 and copy Database ID.
- Replace placeholder
database_idin all three wrangler config locations. npm install+npm run db:migrate:remotefrom repo root (or CI equivalent).- Deploy Proxy from
packages/proxywithwrangler deploy. - Deploy Admin from
packages/adminvianpm run build:cf+wrangler deploy. - Store
ADMIN_PASSWORD(and similar) as Secrets, not in Git. - Attach HTTPS hostnames; align
GATEWAY_URL/GATEWAY_MASTER_URLin downstream systems. - Smoke test
/health, Admin login, and a chat call with a test key (Quick start).
vs Docker
Section titled “vs Docker”- Edge + less metal → Cloudflare.
- Strict VPC / BYO DB → Docker.