You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just created a server function to find a user by email using prisma client and it's giving me this error.
[Error: PrismaClient is unable to run in Vercel Edge Functions or Edge Middleware. As an alternative, try Accelerate: https://pris.ly/d/accelerate.
Please either fix it or remove this for one's that are not using the vercel edge functions. You can ask when installing the prisma to choose whether use with vercel edge functions or not, If someone wants to use he will select yes, if someone don't really need these edge function then this error message should not be appeared to them
Please consider fixing it as soon as possible
How to reproduce
Expected behavior
This should work fine without this weird vercel edge function or middleware error message to trash the console
This discussion was converted from issue #24185 on May 14, 2024 17:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Bug description
I'm just created a server function to find a user by email using prisma client and it's giving me this error.
Please consider fixing it as soon as possible
How to reproduce
Expected behavior
This should work fine without this weird vercel edge function or middleware error message to trash the console
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions