mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): register augmented pages to avoid re-augmenting
This commit is contained in:
parent
13fec55c10
commit
b75bf870be
@ -144,6 +144,7 @@ export async function augmentPages (routes: NuxtPage[], vfs: Record<string, stri
|
||||
if (!augmentedPages.has(route) && route.file) {
|
||||
const fileContent = route.file in vfs ? vfs[route.file] : fs.readFileSync(await resolvePath(route.file), 'utf-8')
|
||||
Object.assign(route, await getRouteMeta(fileContent, route.file))
|
||||
augmentedPages.add(route)
|
||||
}
|
||||
|
||||
if (route.children && route.children.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user