cmcnicholas
cmcnicholas
NNuxt
Created by cmcnicholas on 9/3/2024 in #❓・help
Prerender Ignore Wildcard Path
I do very similar, the issue I have is that nuxt likes to crawl the links during static generation and it see's links like /__VITE_something__ because the build has no values set (intentional so they can be replaced) I'm trying to tune how nuxt decides to crawl, I'm having to be explicit in routeRoules at the moment e.g.
routeRules: {
'/__VITE_SOMETHING__': { prerender: false },
'/__VITE_SOMETHING_ELSE__': { prerender: false },
'/**': { prerender: true },
},
routeRules: {
'/__VITE_SOMETHING__': { prerender: false },
'/__VITE_SOMETHING_ELSE__': { prerender: false },
'/**': { prerender: true },
},
but would prefer to do for maintenance sake:
routeRules: {
'/__VITE_**': { prerender: false },
'/**': { prerender: true },
},
routeRules: {
'/__VITE_**': { prerender: false },
'/**': { prerender: true },
},
9 replies