Skip to content
Discussion options

You must be logged in to vote

Uff my memory can be betraying me here, but this is like, imagine, you are at page A, and to go to page B, you have to be an authenticated user. Then you'd want to run the check as you transition to page B, and for that, middleware checks need to be performed. This is a specific case, but redirects, rewrites, etc, also fall into that.

So, in a way, I think the flow was like, there's middleware that matches the route you are going into, and that might imply that the navigation won't flow, we need to run the middleware (at the edge), to know, and that's why you see that.

Adding a matcher, should mean that, the unmatched routes stop making this additional request, could you test that?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@instaproadrian
Comment options

Answer selected by instaproadrian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants