/
1 parent a42c1c8 commit cfe155fCopy full SHA for cfe155f
2 files changed
playground/pages/index.vue
src/module.ts
@@ -141,6 +141,10 @@ export default defineNuxtModule<ModuleOptions>({
141
142
nuxt.hook('pages:extend',pages=>{
143
routes.length=0
144
+routes.push(
145
+'/',
146
+ ...((nuxt.options.nitro.prerender?.routes||[])asstring[])
147
+)
148
functionprocessPages(pages: NuxtPage[],currentPath=''){
149
for(constpageofpages){
150
if(page.path.includes(':'))continue
0 commit comments