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
GitHub
SessionTokenError & PrismaClient is not configured to run in Vercel...
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...
0 Replies