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 authored and farnabaz committed Sep 7, 2022
1 parent 85c7313 commit bc3dea0
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 bc3dea0

Please sign in to comment.