Nuxt · App config
NUXT0001Use app.config keys read by Docus
Flags unknown key in Docus appconfig code before it leaks into runtime behavior.
vite-doctor/docusapp-configwarnSuggestion
Why it happens
Runtime configuration has different server and client visibility. Using the framework API keeps environment data typed and scoped.
Fix
Remove unknown key, or move it to the Docus runtime/API that owns that behavior.
Example
Avoid unknown key
Before
export default defineAppConfig({
docus: {},
marketing: { enabled: true },
})
After
export default defineAppConfig({
docus: {},
ui: { colors: { primary: 'green' } },
})
Verify the fix
Run only this rule after editing so the report stays focused on the diagnostic you are closing:
pnpm nuxt doctor --rules docus/appconfig/no-unknown-key