fix(nuxt): pass augmented pages to child paths

resolves https://github.com/nuxt/nuxt/issues/27781
This commit is contained in:
Daniel Roe 2024-06-30 01:45:34 +01:00
parent ca9d9825b2
commit ecb35d3a2a
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -149,7 +149,7 @@ export async function augmentPages (routes: NuxtPage[], vfs: Record<string, stri
}
if (route.children && route.children.length > 0) {
await augmentPages(route.children, vfs)
await augmentPages(route.children, vfs, augmentedPages)
}
}
return augmentedPages