[NextJS 15] Absolute redirect from server action to different service on same domain #80209
Unanswered
Safturento
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have an application that I am trying to upgrade to NextJS 15 but I am running into issues with external redirects in server actions. The application has a NextJS server and an api server that are behind an envoy service which routes certain routes to the correct service. This means that both of these services are on the same domain.
In NextJS 14 when we redirect to an absolute URL in a server action that should go to our backend api it correctly treats this as an external redirect and routes through envoy to the correct place.
In NextJS 15 these redirects are treated as relative and are sent to NextJS on a path that does not exist, leading to a 404. I believe this change is why the behavior is different in version 15, and I'm wondering if there's any way to explicitly disable streaming for these redirects and treat them as external despite being on the same domain.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions