Next.js on Cloudflare with D1?
Hey, everyone. I am working through the Next.js tutorial. I am trying to set it up on Cloudflare Pages. I am at a step where I need to hook up a database. (I'll turn this into a thread and then ask my question.)
1 Reply
When I am setting up the D1 database (https://developers.cloudflare.com/d1/get-started/), would you recommend that I build the Worker in the same project as the web app? For example, one folder for
web-app
, and another called api
?
This is where I am in the tutorial site: https://nextjs.org/learn/dashboard-app/setting-up-your-database
I appreciate that.