getSession called in next middleware reports: PrismaClient is unable to run in this browser envir..

The full error message is : [Better Auth]: INTERNAL_SERVER_ERROR Error: PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in ``). Looks like better-auth is trying to call prisma in the next Edge environment which it shouldn't. Anybody seen that before ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?