title: Error connecting to MongoDB on production Vercel
body: <p>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.</p>
  <p><a href="https://i.stack.imgur.com/SJBCn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SJBCn.png" alt="I'm getting this log on Vercel" /></a></p>