-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next-axiom should not treat NEXT_REDIRECT as errors #219
Comments
Hi, those errors and status code overriding affects DX seriously, any plans to fix that? |
We catch all errors and set statusCodes to 500s. This changes the behavior to set the statusCodes to 404 or one of 307/308. This fixes #219
I have created a PR to catch also, is there any other catch errors we should catch? |
I think it's debug level for redirects, because it's not an error. If it was a plugin, not a wrapper - those levels could go to the some sort of config |
updated my PR with default values for both errors and a way to override those values through the config object. |
When wrapping route handlers with
withAxiom
, redirects using App Router's redirect() are caught and treated as errors. If this library claims to be compatible with the App Router, it should understand this is not an error. Same thing with notFound().By the way, is this being maintaned at all? Last release was months ago.
The text was updated successfully, but these errors were encountered: