Skip to content

Commit 19bcce5

Browse files
authored
fix: make sure components/content is on top in layers (#1418)
1 parent 91d257e commit 19bcce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export default defineNuxtModule<ModuleOptions>({
346346
})
347347

348348
// Register user global components
349-
for (const layer of nuxt.options._layers) {
349+
for (const layer of nuxt.options._layers.reverse()) {
350350
const srcDir = layer.config.srcDir
351351
const globalComponents = resolve(srcDir, 'components/content')
352352
const dirStat = await fs.promises.stat(globalComponents).catch(() => null)

0 commit comments

Comments
 (0)