Home > front end >  Error connecting to MongoDB on production Vercel
Error connecting to MongoDB on production Vercel

Time:07-30

I have recently deployed a NextJS app to production and it's failing to connect to my database. In development mode it works just fine.

I'm getting this log on Vercel

CodePudding user response:

You have to correctly set your security parameters.

For Atlas to work with Vercel you need to set Network Access > ip whitelist > *.

  • Related