But I have a paid domain which goes by the name thewordnerd.xyz, which is what I’ve placed in my .env file’s NEXTAUTH_URL variable, as well as the authorized redirect URI in my OAuth provider’s (Google) settings.
I don’t have any build problems, it builds fine, I just keep being redirected to this URI
There’s no solution yet as we’re still waiting for them to follow-up and were not able to reproduce the issue. In your case, I can see that happen however, I’m never asked to log into my Google Account, so it seems something else is off.
In your case, I can see that you’re hardcoding the wrong values:
Yeah I’m having that same issue. I’ve built with next-auth in the Spring of this year without this issue. When I deploy locally or not on Netlify I don’t get the redirect errors. I really want this to work because on Netlify though and not turn to another tool to deploy.
As we’re discussing in your other thread @rjames, I haven’t been able to reproduce the error in your case yet. Let’s keep your discussion going on in your thread.
The “hardcoded” value is now showing the correct URL. This is the solution, but I’d also like to know why this is the solution, to understand how to avoid this problem moving forward. Why, when I already set the .env variable in my local code, was it changed to something else when I published it to Netlify?