Next auth v5 production on sign in error it redirect to localhost:3000/error not to the domain name example.com/error #10767
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Next v14 and Next-auth v5
I have my project deployed on Nginx web server
and this is the config of Nginx
proxy_pass http://127.0.0.1:3000/;
proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
when I add NEXTAUTH_URL the project does not run when I remove as you mentioned in the doc that it take it from header
the callback urls got to localhost:3000
while in headers I get
x-forwarded-host is correct and I get domain name in it
could any one help me with it
Beta Was this translation helpful? Give feedback.
All reactions