Skip to content

Commit 1b3c59c

Browse files
committedMar 13, 2025·
fix: avoid hanging when pages aren't used in Nuxt 3.16
1 parent 810b47e commit 1b3c59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/util/kit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export {}
7070
export function createPagesPromise(nuxt: Nuxt = useNuxt()) {
7171
return new Promise<NuxtPage[]>((resolve) => {
7272
nuxt.hooks.hook('modules:done', () => {
73-
if (typeof nuxt.options.pages !== 'undefined' && nuxt.options.pages === false) {
73+
if ((typeof nuxt.options.pages === 'boolean' && nuxt.options.pages === false) || (typeof nuxt.options.pages === 'object' && !nuxt.options.pages.enabled)) {
7474
return resolve([])
7575
}
7676
extendPages(resolve)

0 commit comments

Comments
 (0)
Please sign in to comment.