I created middleware to use in some pages, but im checking and taking time to run
what cand i do fot this?
2 Replies
I'm trying to deny users access to certain routes, but he gets to see the content until it loads, I don't know on the client or server
Hi, you can just add on the routeRules to specify the page that you want to apply the middleware like this
and just abort the navigation in your middleware, or you can just add 1 by 1 on the pageMeta in every page you want to apply