Skip to content

Commit

Permalink
fix: allow nuxt.options.pages to be unset (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddymeows authored Nov 2, 2023
1 parent 7d67f17 commit 3d97544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`),
Expand Down

0 comments on commit 3d97544

Please sign in to comment.