Deploy a Next.js site · Cloudflare Pages...

I'm using Next.js created with create-next-app. When I start Next with commands like yarn dev, I want to use a local D1 created with npx wrangler d1 somecommand --local in api/foo/bar/route.ts. However, even after referring to the following page, I can't seem to bind it properly in my local environment. https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#use-bindings-in-your-nextjs-application Is this an issue unique to my environment? Is there any way to fix this?
Deploy a Next.js site · Cloudflare Pages docs
Next.js is an open-source React framework for creating websites and applications. In this guide, you will create a new Next.js application and deploy …
1 Reply
ln_north
ln_north5mo ago
I found pages:dev command, and got it. but that's hot reloading is too slow.