cornpopguy
cornpopguy
Explore posts from servers
PPrisma
Created by cornpopguy on 4/24/2024 in #help-and-questions
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?
2 replies