Restore default component scan so app overrides aren't shadowed by the docus layer
This commit is contained in:
@@ -25,6 +25,11 @@ function getContributors(absoluteFilePath: string): string[] {
|
|||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
extends: ['docus'],
|
extends: ['docus'],
|
||||||
components: [
|
components: [
|
||||||
|
// Passing an array here replaces Nuxt's default `~/components` scan
|
||||||
|
// instead of adding to it, so every local override under app/components/
|
||||||
|
// (AppHeaderCenter, AppHeaderBottom, DocsAsideLeftTop, etc.) was silently
|
||||||
|
// ignored in favor of the docus layer's originals. Keep the default scan.
|
||||||
|
'~/components',
|
||||||
// ProseNote/Tip/Warning/Caution are only ever resolved dynamically, by
|
// ProseNote/Tip/Warning/Caution are only ever resolved dynamically, by
|
||||||
// name, from Nuxt Content's MDC tag map (`note` -> `ProseNote`, etc.).
|
// name, from Nuxt Content's MDC tag map (`note` -> `ProseNote`, etc.).
|
||||||
// Nothing statically imports or writes `<ProseNote>` in a template, so
|
// Nothing statically imports or writes `<ProseNote>` in a template, so
|
||||||
|
|||||||
Reference in New Issue
Block a user