I’m integrating MongoDB into a Next.js application and I used the following command: ‘npx create-next-app --example with-mongodb mental-health-app’
I followed all the instructions to add a connection string. I am very sure that my connection string is correct: MONGODB_URI=“mongodb+srv://enguyen:###@cluster0.jxrki.mongodb.net/mental-health-app?retryWrites=true&w=majority&appName=Cluster0”
- I updated the password for the database user and ensured it matched in the connection string
- I created a new user, ensured the passwords and username matched, but it’s still not working!
- I even removed the database name, added it back in, removed the double-quotes and added it back in to no avail
Any ideas how I can fix this issue??