Why does NextResponse.redirect send users to localhost behind nginx?
DEV Community
Why does NextResponse.redirect send users to localhost behind nginx?
Under next start, request.url carries the server's own host and port, not the Host header, so redirects built from it go to localhost. Three tested fixes.
0 comments
No comments yet.