-
I don't know if I get this:
Does this mean that I can't redirect from a static page to any other or it means that I can't redirect from anywhere to a static page? I also don't get the "object format support", what is the alternative? Is the I'm having issue when trying to redirect from a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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) |
Beta Was this translation helpful? Give feedback.
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)