Email Provider not working on Vercel with the Prisma Adapter #5323
-
Hello! So I am using a custom login form with the Email Provider and Google Provider. On localhost everything works fine and as expected. However, when the project is deployed to production on Vercel, an error occurs when trying to sign in with email. I am using the Prisma adapter and a PostgreSQL database.
The error I get basically states that the The database used on localhost and the deployed website is the same. A little help and explanation would be really appreciated to fix this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So what happened is that I was using the credentials provider along with the email provider in a previous deployment and it looks like it caused some sort of conflict somewhere when I removed the credentials provider. Redeployed the code and got it to work after a database reset. Still don't know why it was working on localhost though. |
Beta Was this translation helpful? Give feedback.
So what happened is that I was using the credentials provider along with the email provider in a previous deployment and it looks like it caused some sort of conflict somewhere when I removed the credentials provider. Redeployed the code and got it to work after a database reset. Still don't know why it was working on localhost though.