Prisma 7 cloudflare
Hello, I have updated to prisma 7 and ran into some issues while deploying to cloudflare.
It fails during build.
db.ts:
schema.prisma
4 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!Hi, in CF workers you need to create a fresh instance in every function (as the .env variables are not available out of the function scope).
You could use our guide for reference and resolve the issue.
How to use Prisma ORM and Prisma Postgres with Cloudflare Workers |...
Learn how to use Prisma ORM in a Cloudflare Workers project
I used it previously without a worker, is it mandatory now?
Also, do I have to run
npx prisma generate when deploying to CF?