Glenn Jacobs
Glenn Jacobs
Explore posts from servers
NNuxt
Created by Glenn Jacobs on 10/17/2024 in #❓・help
How to disable SWR if a route has a querystring?
We are building an online store and have category pages that list out products. We want the main initial category page to use SWR for speed and SEO. These category pages have filters, that are applied to the querystring when selected. We don't wish to SWR a category page with filters applied in the querystring, instead we'd like them to use CSR. I can't see how to use routeRules or middleware to achieve this. I'm open to suggestions! 🙂
1 replies