Next.js Discord

Discord Forum

Next Auth (Github) directing me back to localhost after deployed

Answered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hi all 👋

This might be a silly question - But I've added auth to my app, this works fine locally... But when I deploy to Vercel, auth is pointing back to localhost:3000, which makes sense.

Do I need to create another Auth app in GitHub pointing to my hosted URL? Or is there a way to do this with a single auth app?
Answered by joulev
Yes, create a new app for production
View full answer

2 Replies