Nuxt · NUXT0001

Use app.config keys read by Docus

Flags unknown key in Docus appconfig code before it leaks into runtime behavior.
NUXT0001vite-doctor/docusapp-configwarnSuggestion
docus/appconfig/no-unknown-keysrc/rule-packs/nuxt/rules/docus.ts

Run 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.

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' } },
})
Copyright © 2026