Why does redirect()
in server action works differently between production and development?
#78057
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.
-
I found that
redirect()
in server actions works differently between production and development environments. In production, a server action request that redirects to '/test' returns a 303 Response that has RSC payloads. However, in development, despite this, an unknown request with an RSC payload still occurs. Does it work correctly?In developement
dev.mov
redirect in server actions to /test
x-action-redirect
header is emptyIn production
prod.mov
redirect in server actions to /test
x-action-redirect
header existsBeta Was this translation helpful? Give feedback.
All reactions