Vercel Next.js “a server-side exception has occured” when trying to fetch data from api route
I’m trying to fetch user data from mongoDb in my NextJs project (app router) using api route handlers. It works perfectly fine locally, builds locally and on Vercel without issues.