Deploying the tutorial project to vercel (login question)
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
Hello, I followed the full tutorial until the last chapter and everything works great locally, but I'm wondering how to get the login to work when the project is deployed to vercel.
I saw that I have to update the environment variables in vercel but i'm not really sure what to add/change ?
any help appreciated, thank you 🙏
I saw that I have to update the environment variables in vercel but i'm not really sure what to add/change ?
any help appreciated, thank you 🙏
11 Replies
Sun bear
In vercel you can setup environmemt variables in the backend.
You more or less have to make sure that all variables from your .emv file are also available in vercels backend (environment variables)
Its not recommended to use the same secrets for local and production so you could also use different ones for production if you want.
You more or less have to make sure that all variables from your .emv file are also available in vercels backend (environment variables)
Its not recommended to use the same secrets for local and production so you could also use different ones for production if you want.
@Northeast Congo Lion Hello, I followed the full tutorial until the last chapter and everything works great locally, but I'm wondering how to get the login to work when the project is deployed to vercel.
I saw that I have to update the environment variables in vercel but i'm not really sure what to add/change ?
any help appreciated, thank you 🙏
Great golden digger wasp
just use everything env variable same on vercel and you are going to get no problems.
Northeast Congo LionOP
currently getting 404
here is the link it's trying to get to
and the AUTH_URL in my vercel project link
not sure if i'm doing something wrong
Great golden digger wasp
please give the full link
@Northeast Congo Lion and the AUTH_URL in my vercel project link
Sun bear
If you are using NextAuth, Vercel does set the NEXT_AUTH_URL automatically
So just leave it empty
Northeast Congo LionOP
oh, empty was the way i guess
ty