Extend the module with additional capabilities.
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()
Fetch secrets from Shelve and inject them into your runtime config at build time or server start.
export default defineNuxtConfig({
safeRuntimeConfig: {
$schema: runtimeConfigSchema,
shelve: true, // auto-detect from shelve.json
},
})