Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 771 Bytes

File metadata and controls

37 lines (27 loc) · 771 Bytes
icon ph:puzzle-piece

Integrations

Extend the module with additional capabilities.

Available Integrations

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: {
      project: 'my-project',
      slug: 'my-team',
    },
  },
})