feat: 위키 저장소 초기 커밋
- CLAUDE.md 운영 규칙 - wiki/ 정리된 지식 페이지 (Nuxt + Claude Code) - raw/ 원본 자료 - reference/ Nuxt 4.x 공식 문서 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
29
reference/4.api/5.kit/10.runtime-config.md
Normal file
29
reference/4.api/5.kit/10.runtime-config.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: Runtime Config
|
||||
description: Nuxt Kit provides a set of utilities to help you access and modify Nuxt runtime configuration.
|
||||
links:
|
||||
- label: Source
|
||||
icon: i-simple-icons-github
|
||||
to: https://github.com/nuxt/nuxt/blob/main/packages/kit/src/runtime-config.ts
|
||||
size: xs
|
||||
---
|
||||
|
||||
## `useRuntimeConfig`
|
||||
|
||||
At build-time, it is possible to access the resolved Nuxt [runtime config](/docs/4.x/guide/going-further/runtime-config).
|
||||
|
||||
### Type
|
||||
|
||||
```ts
|
||||
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.
|
||||
|
||||
### Type
|
||||
|
||||
```ts
|
||||
function updateRuntimeConfig (config: Record<string, unknown>): void | Promise<void>
|
||||
```
|
||||
Reference in New Issue
Block a user