Hey forgive my innocence. This is my first time with cloudflare. I am trying to work with nextjs

Hey forgive my innocence.

This is my first time with cloudflare.

I am trying to work with nextjs with D1 . I was able to test it on production.

But i need it for local development. I created the nextjs project using wrangler. In the
package.json
there is a command "pages:dev": "npx wrangler pages dev .vercel/output/static --compatibility-date=2023-12-06 --compatibility-flag=nodejs_compat"

I also read several docs on local d1 but I always have errors. This command is the closest i got to work on locally. Thanks!
Screenshot_2023-12-23_at_19.03.35.png
Screenshot_2023-12-23_at_19.04.48.png
Was this page helpful?