DISCORD OAUTH Problem

OAUTH2, Discord Anyone ever run into this error? https://gist.github.com/barrybtw/8bb94fdcdbbee3d1a24e0e4c2c2f8fea I can run it locally just fine, but whenever I deploy it, I get this error in my logs...? Somehow???? https://reactiflux-com.fly.dev/api/auth/callback/discord Redirects to localhost 3000 wtf I've searched the whole codebase for any references to localhost:3000 but no luck, so fucking confused lol Where's this shit coming from
Solution:
Figured it out, next takes in NEXTAUTH_URL as environment, defaults to localhost:3000
Jump to solution
5 Replies
barry
barryOP4mo ago
No description
barry
barryOP4mo ago
I've restarted my server twice
Tim
Tim4mo ago
Do you have your .env correctly configured?
Solution
barry
barry4mo ago
Figured it out, next takes in NEXTAUTH_URL as environment, defaults to localhost:3000
Want results from more Discord servers?
Add your server