On vercel, the mongoDBAtlas integration does not have the option to edit/specify the dbname. It simply links a project to a cluster.
When the user sign up, the user gets created in the actual database. Immediately after, the user logs in but the session gets stored in "test" database
Looks like a bug for production when using Vercel?
In local, I can specify the full database name:
MONGODB_URI=mongodb+srv://<user><pass>@clustername.mongodb.net/<DBNAME>
On vercel, the mongoDBAtlas integration does not have the option to edit/specify the dbname. It simply links a project to a cluster.
When the user sign up, the user gets created in the actual database. Immediately after, the user logs in but the session gets stored in "test" database
Looks like a bug for production when using Vercel?