Matthias
Matthias
NNuxt
Created by Matthias on 11/30/2024 in #❓・help
cache
When using nuxt routerules and swr, is it possible to ingnore the query parameters when caching the page so that all pages with same path but different query parameters use the same cache?
12 replies
NNuxt
Created by Matthias on 11/10/2024 in #❓・help
Nuxt Icon cannot load custom svgs in SSR
Hello! I am using nuxt 3 with nuxt ui and @nuxt/icon. I have added custom collections in my nuxt config like this: icon: { customCollections: [ { prefix: 'flags', dir: './assets/icons/flags', }, ], }, The icons are displayed in the frontend but I get a warning that they can be loaded on the server: [Icon] failed to load icon flags:de-de
6 replies
NNuxt
Created by Matthias on 11/9/2024 in #❓・help
Disable SWR caching for redirects
Hello I am useing Nuxt 3 for my projects and enabled swr-caching via route rules in my nuxt config leveraging a wildcard. This works great but I also have a rout middleware that handles redirects using NavigateTo. The redirects are fetched dynamically so are not known. I found that all my redirects are being cached with swr. How can I disable the cache in my middleware when I redirect?
5 replies