Runtime Config
Nuxt Kit provides a set of utilities to help you access and modify Nuxt runtime configuration.
useRuntimeConfig
At build-time, it is possible to access the resolved Nuxt runtime config.
Type
function useRuntimeConfig (): Record<string, unknown>
updateRuntimeConfig
It is also possible to update runtime configuration. This will be merged with the existing runtime configuration, and if Nitro has already been initialized it will trigger an HMR event to reload the Nitro runtime config.
function updateRuntimeConfig (config: Record<string, unknown>): void | Promise<void>
Modules
Nuxt Kit provides a set of utilities to help you create and use modules. You can use these utilities to create your own modules or to reuse existing modules.
Templates
Nuxt Kit provides a set of utilities to help you work with templates. These functions allow you to generate extra files during development and build time.