Cloudflare Workers Deploy Skeleton

Set up a Cloudflare Workers "Walking Skeleton" that serves SPA + API + Cron from a single Worker, with D1 migrations and GitHub Actions auto-deploy. Use when starting a new Cloudflare Workers project and you need the full deployment pipeline (wrangler.jsonc, the 3-layer SPA routing dance, deploy.yml, empty D1 migration) wired up with business logic deferred. Covers the setup pitfalls that are easy to lose hours on — D1 token scope, `pnpm deploy` npm-script collision, database_id placeholder, and the RP_ID locking rule for any future WebAuthn use.

okayus 59212e1 10 files · 45.3 KB Updated

File contents

okayus/okayus-skills/tree/main/skills/cloudflare-workers-deploy-skeleton commit 59212e1e19

Frequently asked questions

npx skillmds@latest add okayus/cloudflare-workers-deploy-skeleton