Prisma not working on middleware even tho the app is being ran on a server.

Hi guys, I keep getting this error when using Prisma with Next.js 14 app, I plan to run my app on a server in a docker container so not edge runtime will be used, but I keep getting this:
[Error: PrismaClient is not configured to run in Vercel Edge Functions or Edge Middleware. In order to run Prisma Client on edge runtime, either:
- Use Prisma Accelerate: https://pris.ly/d/accelerate
- Use Driver Adapters: https://pris.ly/d/driver-adapters

If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report]
[Error: PrismaClient is not configured to run in Vercel Edge Functions or Edge Middleware. In order to run Prisma Client on edge runtime, either:
- Use Prisma Accelerate: https://pris.ly/d/accelerate
- Use Driver Adapters: https://pris.ly/d/driver-adapters

If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report]
How should I fix this error?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server