Are redirects in next.config.js supported? #140
-
My ultimate goal is this (so if you have a better suggestion that totally avoids the problem I'm open to that as well :)): I want to redirect An "easy" way to do this I thought would be to use Next.js functionality by adding this to
Unfortunately as far as I can tell, at least for me, this does not work. Why it doesn't it work I don't know - I am wondering if it's because the origin host / hostname / domain isn't passed in to the handling function(s). I made a simple "API Route" like this:
and my Next.js project HOSTED IN AWS I see I had hoped somewhere in Am I missing anything? Is this an issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately I'm uncertain as to what was wrong, but I do know that for some reason updating the version of |
Beta Was this translation helpful? Give feedback.
a newer version of open-next fixed the host from localhost:3000 => yourdomain.com