From 3d975448734201bd6ca224142a2d66c44842023a Mon Sep 17 00:00:00 2001 From: maddy Date: Thu, 2 Nov 2023 17:09:36 +0100 Subject: [PATCH] fix: allow nuxt.options.pages to be unset (#747) --- src/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers.ts b/src/resolvers.ts index 8871fe28..98d1bc6b 100644 --- a/src/resolvers.ts +++ b/src/resolvers.ts @@ -45,7 +45,7 @@ export const resolveContentPaths = (srcDir: string, nuxt = useNuxt()) => { })(), r(`${nuxt.options.dir.layouts}/**/*${sfcExtensions}`), - ...(nuxt.options.pages ? [r(`${nuxt.options.dir.pages}/**/*${sfcExtensions}`)] : []), + ...([true, undefined].includes(nuxt.options.pages) ? [r(`${nuxt.options.dir.pages}/**/*${sfcExtensions}`)] : []), r(`${nuxt.options.dir.plugins}/**/*${defaultExtensions}`), ...importDirs.map(d => `${d}/**/*${defaultExtensions}`),