fix: use array syntax for components config with pathPrefix

Nuxt requires array syntax when configuring pathPrefix per directory.
Object syntax { pathPrefix: false } doesn't register component dirs.
This commit is contained in:
2026-04-08 18:48:19 +02:00
parent ef9ceeae17
commit 1cdddb7cf4
+6 -3
View File
@@ -12,9 +12,12 @@ export default defineNuxtConfig({
'nuxt-gtag', 'nuxt-gtag',
'@nuxt/image' '@nuxt/image'
], ],
components: { components: [
pathPrefix: false, {
}, path: '~/components',
pathPrefix: false,
},
],
typescript: { typescript: {
strict: true strict: true
}, },