Mongo node .find() in Next.js API route working in local env but not on Vercel
I am calling the same .find()
operation on MongoDB collection. I am connected to the same MongoDB in both the development environment and production (Vercel). In development environment I get results, but in production not: