โ‰ˆ the.bay.news

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

Sign in to join the discussion โ€” your thebay.events account works here.

No comments yet.