Integrations

Extend the module with additional capabilities.

Available Integrations

ESLint

Warns when using useRuntimeConfig() instead of the type-safe useSafeRuntimeConfig(). Auto-fix support included.

// Warning: prefer-safe-runtime-config
const config = useRuntimeConfig()

// No warning
const config = useSafeRuntimeConfig()

Shelve

Fetch secrets from Shelve and inject them into your runtime config at build time or server start.

nuxt.config.ts
export default defineNuxtConfig({
  safeRuntimeConfig: {
    $schema: runtimeConfigSchema,
    shelve: true, // auto-detect from shelve.json
  },
})