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.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -12,9 +12,12 @@ export default defineNuxtConfig({
|
|||||||
'nuxt-gtag',
|
'nuxt-gtag',
|
||||||
'@nuxt/image'
|
'@nuxt/image'
|
||||||
],
|
],
|
||||||
components: {
|
components: [
|
||||||
|
{
|
||||||
|
path: '~/components',
|
||||||
pathPrefix: false,
|
pathPrefix: false,
|
||||||
},
|
},
|
||||||
|
],
|
||||||
typescript: {
|
typescript: {
|
||||||
strict: true
|
strict: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user