-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct config for Prisma with Supabase on Cloudflare #241
Comments
Duplicate of #38 Would you mind reading https://github.com/nuxt-hub/core/pull/58/files and see if this works? |
The example uses sqlite and ignores the |
I guess you also read https://www.prisma.io/docs/orm/prisma-client/deployment/edge/deploy-to-cloudflare ? |
I had a similar problem, you could try this prisma/prisma#23500 (comment). It seems to be a problem with Nitro and Prisma |
@mtzrmzia I'm late, but in case someone else is having trouble using Supabase + ORM + Cloudflare. I did some research and found that Cloudflare Workers aren't based on Node, but on V8 which has a subset of the features of Node. That means if you use an ORM, it'll use default a TCP connection to your DB, which it shouldn't be supported afaik from Cloudflare Workers. So, the solution is either you ditch:
In my case I decided to migrate my DB to Neon, because it was the fastest and with fewer conflicts to my workflows |
Describe the bug
I'm trying to relocate my Vercel projects to Cloudflare through NuxtHub. I'm using Prisma ORM with Supabase and on Vercel deploy the project works as expected, but in Cloudflare not. I got
500: Cannot read properties of undefined (reading 'exec').
error but in local works!Steps to reproduce
Steps to reproduce the behavior:
prisma
and@prisma/client
dependencies then addprisma generate
tobuild
command:prisma/schema.prisma
file:and thats it, on Vercel this works
Expected behavior
Request sent as expected
I'm doing my research, and this issue happens to another person Cloudflare issue
The text was updated successfully, but these errors were encountered: