Skip to content

Why NextResponse.redirect is not triggering on production #68767

Answered by Elindo586
Melancholism asked this question in Help
Discussion options

You must be logged in to vote

Hey Thanks!

I did fix the problem I had, it had to do with an <a> with href link using www in the address, instead I just went href="htttps://mysite.com" <--- this was to reach a route that had a NextResponse.redirect(new URL("https://heregoestheothersite.com", req.url));

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Melancholism
Comment options

@Elindo586
Comment options

Answer selected by Melancholism
@Melancholism
Comment options

Comment options

You must be logged in to vote
1 reply
@Kostya-star
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants