This demo shows EmDash running on Cloudflare Workers with D1 database.
Uses Astro 6 + @astrojs/cloudflare v13 which runs the real workerd runtime in development.
- Create a D1 database:
pnpm db:create- Copy the database ID from the output and update
wrangler.jsonc:
- Start the dev server:
pnpm devEmDash runs migrations automatically on first request — no manual migration step needed.
After building, you can preview with the real Workers runtime:
pnpm build
pnpm previewpnpm deployThis builds and deploys to Cloudflare Workers. EmDash handles migrations automatically on startup.
astro devnow usesworkerd(the real Workers runtime) - development matches productionwrangler typesruns automatically before dev/build to generate TypeScript types for bindings- No
platformProxyconfig needed - Astro 6 handles this automatically
- R2 storage for media uploads
- Auth integration (Cloudflare Access or custom)