Skip to content

About redirect caveats #1741

Answered by dphang
Alecell asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the new format actually refers to https://nextjs.org/docs/api-reference/next.config.js/redirects#header-cookie-and-query-matching. Let me update it to be clearer. It's not yet implemented since I hadn't a chance yet.

You cannot redirect from paths in _next/static/* and static/* as these are the static files path (like images or _next JS files) and don't have the Lambda handlers attached to it. Maybe with CloudFront functions, it should be possible (but not yet implemented)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Alecell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants