What next-auth (auth.js) db provider to use for deploying to vercel?
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I'm planning on deploying my nextjs site to vercel, and I'd like to know what provider I should use for implementing Magic Links to my page that will work with vercel. Asking because the docs are kinda confusing, my understanding is that i can only use vercel postrgres as a db when deploying in vercel, but i dont see that option as a provider in the next-auth docs - would I have to create it myself?
Answered by Oriental
you can use whatever provider you want and deploy to vercel without a problem.
9 Replies
Oriental
you can use whatever provider you want and deploy to vercel without a problem.
Answer
Spectacled bearOP
so, i can use any db i want when deploying to vercel?
Oriental
yes
Spectacled bearOP
cool! and, unrealted but kinda related, is it possible to also have my backend deployed on vercel (strapi with sqlite3 db) or would I have to deploy it elsewhere?
Oriental
i'm not sure about that. i havent deployed a backend to vercel. but there's probably a way to do it. a bit more research would've to be done in your specific case.
you can always create your backend within nextjs and deploy 1 fullstack application
but this also depends on your project needs
Spectacled bearOP
cool! thanks for clearing this up for me!!!
Oriental
sure thing!