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
GitHub
GitHub - Dieber/t3-test-redirect: for issue
for issue. Contribute to Dieber/t3-test-redirect development by creating an account on GitHub.
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233778970189627422/1714221594910.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233778970424774676/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233778970659651625/1714221698896.png)
0 Replies