We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 810b47e commit 1b3c59cCopy full SHA for 1b3c59c
src/util/kit.ts
@@ -70,7 +70,7 @@ export {}
70
export function createPagesPromise(nuxt: Nuxt = useNuxt()) {
71
return new Promise<NuxtPage[]>((resolve) => {
72
nuxt.hooks.hook('modules:done', () => {
73
- if (typeof nuxt.options.pages !== 'undefined' && nuxt.options.pages === false) {
+ if ((typeof nuxt.options.pages === 'boolean' && nuxt.options.pages === false) || (typeof nuxt.options.pages === 'object' && !nuxt.options.pages.enabled)) {
74
return resolve([])
75
}
76
extendPages(resolve)
0 commit comments