#NextAUTH not working for some reason

12 messages · Page 1 of 1 (latest)

hybrid micaBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

little locust
#

is your NEXTAUTH_URL correct where you host the app?

native fern
little locust
#

you don't normally keep .envs other than .env.local on the repo, for remote deployments there's other ways to set env vars in that environment, like project settings on Vercel

native fern
#

yeah thats what I mean .env.local

little locust
#

since you are using Vercel based on the screenshot, then it's where you should set it - in project settings -> environment variables on Vercel dashboard

native fern
#

Done, do you I have to redeploy or no

little locust
#

on .env.local it would be something like NEXTAUTH_URL=http://localhost:3000 whereas on Vercel, for production, you need to set it to the production domain

native fern
#

yea

little locust
#

I think you do have to redeploy for new ENV to kick in, not 100% sure

native fern
#

alr alr thanks