Closed
Description
Description
Set up Cloudflare Workers and configure Next.js for edge deployment.
Tasks
- Install and configure wrangler
- Install @cloudflare/next-on-pages
- Configure project for Workers deployment
- Set up Edge Runtime compatibility for all routes
- Create wrangler.toml with R2 bucket bindings
- Create .dev.vars file for local secrets
Acceptance Criteria
- Wrangler CLI installed and configured
- Project builds with @cloudflare/next-on-pages
- wrangler.toml properly configured with R2 bindings
- Local development works with wrangler
Technical Notes
- Follow Cloudflare's official Next.js deployment guide
- Ensure all routes use Edge Runtime
- Test R2 bindings work locally
Related TODO.md lines: 9-11, 13, 17