Open brizzbuzz opened 11 months ago
@unredundant
A workaround to this would be:
return Response.redirect(
${request.nextUrl.origin}/dashboard);
Check out this comment made by another user for more info
The workaround doesn't work for me because I'm on a server action. The error doesn't appear on dev but only on production build.
Same issue. @MihinMUD Did you find any solutions for this?
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
Link to the code that reproduces this issue
https://github.com/unredundant/nextjs-crash-on-redirect
To Reproduce
Confirmed on both pop_os 22.04 and macos whatever they called it (latest)
Current vs. Expected behavior
I should be able to redirect my web app to another page.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Additional context