PrismaP
Prisma17mo ago
1 reply
Mirko

SessionTokenError & PrismaClient is not configured to run in Vercel Edge Functions/Edge Middleware

PrismaClient fails to initialize in an Edge Runtime environment (Next.js middleware) despite using the recommended configuration with driver adapters and Neon's pooled connections. The error persists even after following the official documentation for Edge compatibility.

you can consult the issue I posted on github 👀

https://github.com/prisma/prisma/issues/25234
image.png
GitHub
Bug description PrismaClient fails to initialize in an Edge Runtime environment (Next.js middleware) despite using the recommended configuration with driver adapters and Neon's pooled connectio...
SessionTokenError & PrismaClient is not configured to run in Vercel...
Was this page helpful?