Can't redirect in server functions with middleware
useServerFn() helper hook on the client.The problem seems to be that the
isRedirect() helper from @tanstack/router-core expects the response to be a type of Response with an options prop.When using middleware, the response is a plain object.