PrismaClient unable to run in Vercel Edge fns
Unanswered
American Kestrel posted this in #help-forum
American KestrelOP
Getting this error
Error: PrismaClient is unable to run in Vercel Edge Functions. As an alternative, try Accelerate: https://pris.ly/d/accelerate.
If this is unexpected, please open an issue: https://github.com/prisma/prisma/issues
at IndexPage (page.tsx:34:68)
at async Promise.all (index 0)
at async Promise.all (index 0)
digest: "2824400565"8 Replies
Its literally telling you the problem. Prisma cannot run on Edge. You are using a edge function or something in the route handler which basically automatically makes the route a edge function
American KestrelOP
Yes, but Prisma is running on edge in other files
and Prisma runs on Vercel edge
Use either the accelerate or if you use planetscale you can use their expermental adaptor
(You have to pay for accelerate pretty sure)
I thought you get something free
Imma recheck, i honestly dont remember
Ok, so accelerate is free for now but its in beta i think. Its gonna be paid when it reaches general availability. It might still end up having a free plan tho