Nuxt · NUXT0001
Use app.config keys read by Docus
Flags unknown key in Docus appconfig code before it leaks into runtime behavior.
docus/appconfig/no-unknown-keysrc/rule-packs/nuxt/rules/docus.tsRun this rule
pnpm nuxt doctor --rules docus/appconfig/no-unknown-key
Why it matters
Runtime configuration has different server and client visibility. Using the framework API keeps environment data typed and scoped.
Recommended 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' } },
})