Replies: 2 comments 3 replies
-
Not sure if I understood exactly what you mean but there are two options, from what I can tell: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok found, in vercel env var db name had trailing new line |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I tried to find how does next-auth connects to mongodb server using provided connection string.
I need it because I want to do the same in my app.
I found that my nextjs app connects to atlas fine when it's running using 'next' command.
But when I try to run it using 'vercel dev' locally, or when I deploy it to vercel - mongo throws "user is not allowed to do action" error.
Most interesting thing - next-auth is still working fine in all the cases, so I want to replicate next-auth's way of connecting to mongo in my own code.
Probably all the connection job is done by typeorm lib, so I need to look there?
Beta Was this translation helpful? Give feedback.
All reactions