Next.js Discord

Discord Forum

Error deploying is success but can not connection to database

Unanswered
Anh Tú posted this in #help-forum
Open in Discord
Original message was deleted.

4 Replies

Original message was deleted
Dunker
Look at your .env file, and make sure you have a production url for auth not localhost,
like abx-fgd.vercel.app/api/auth
Then check your .env variables to see are you connecting a remote db, not local. If not first correct this
@Anh Tú Do you have an example for this? It's quite new to me
Dunker
You have a .env file at your project root, how are you setting auth and db secrets