XavierBreadX
tRPC2y ago
1 reply
XavierBread

error: NEXT_REDIRECT

Hi
I'm doing a server call in RSC, but it crash the app and show this kind of error where shows in the pic.
So, how to make a redirect when user validation failed in a trpc middleware?
this is minimally reproducible code https://github.com/Dieber/t3-test-redirect
1714221594910.png
image.png
1714221698896.png
GitHub
for issue. Contribute to Dieber/t3-test-redirect development by creating an account on GitHub.
GitHub - Dieber/t3-test-redirect: for issue
Was this page helpful?