Cloudflare D1 + Next.js demo
Server component reads todos directly from the DB binding via getCloudflareContext(). Mutations go through /api/todos.
- Is it working
- Add a real schema
- Deploy to Workers via OpenNext
- Try Cloudflare D1
Server component reads todos directly from the DB binding via getCloudflareContext(). Mutations go through /api/todos.