Before starting, make sure you have the following:
node >= 16
- A Prisma Data Proxy account
- Followed steps #6 and #7 at Prisma and Cloudflare documentation
- A
.env
file withDATABASE_URL
that points to your prisma data proxy account
After that, do the following:
npm install
PRISMA_CLIENT_ENGINE_TYPE=dataproxy npx prisma generate
Check Prisma and Cloudflare for more information.
$ npm run dev
And then check http://127.0.0.1:8787
. You're ready 💇♂️
npm run deploy