Skip to content

Commit b75bf87

Browse files
committed
fix(nuxt): register augmented pages to avoid re-augmenting
1 parent 13fec55 commit b75bf87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nuxt/src/pages/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export async function augmentPages (routes: NuxtPage[], vfs: Record<string, stri
144144
if (!augmentedPages.has(route) && route.file) {
145145
const fileContent = route.file in vfs ? vfs[route.file] : fs.readFileSync(await resolvePath(route.file), 'utf-8')
146146
Object.assign(route, await getRouteMeta(fileContent, route.file))
147+
augmentedPages.add(route)
147148
}
148149

149150
if (route.children && route.children.length > 0) {

0 commit comments

Comments
 (0)