Matthias
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
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