Hot to redirect in middleware when using createCallerFactory
Hello.
I do have this tiny middleware:
I am aware of redirect throws an error but it seems to be wrapped in a
Is there any known workaround for this to work?
Node 20 / npm 10
I do have this tiny middleware:
I am aware of redirect throws an error but it seems to be wrapped in a
result.error.cause when thrown out so next can't realize that is redirect error and just ouputs Error: NEXT_REDIRECT to console.isRedirectError(result.error) === false while isRedirectError(result.error.cause) === trueIs there any known workaround for this to work?
Node 20 / npm 10