Skip to content

Commit

Permalink
fix: make sure components/content is on top in layers (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDredd committed Aug 8, 2022
1 parent 91d257e commit 19bcce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default defineNuxtModule<ModuleOptions>({
})

// Register user global components
for (const layer of nuxt.options._layers) {
for (const layer of nuxt.options._layers.reverse()) {
const srcDir = layer.config.srcDir
const globalComponents = resolve(srcDir, 'components/content')
const dirStat = await fs.promises.stat(globalComponents).catch(() => null)
Expand Down

0 comments on commit 19bcce5

Please sign in to comment.