@nuxt/docs-nightly 4.5.0-29703714.2f094acc → 4.5.0-29705236.f2ca6ea5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -345,10 +345,6 @@ NUXT_GITHUB_TOKEN='<my-super-token>'
|
|
|
345
345
|
```
|
|
346
346
|
::
|
|
347
347
|
|
|
348
|
-
::note
|
|
349
|
-
Giving the `event` as argument to `useRuntimeConfig` is optional, but it is recommended to pass it to get the runtime config overwritten by [environment variables](/docs/4.x/guide/going-further/runtime-config#environment-variables) at runtime for server routes.
|
|
350
|
-
::
|
|
351
|
-
|
|
352
348
|
### Request Cookies
|
|
353
349
|
|
|
354
350
|
```ts [server/api/cookies.ts]
|
|
@@ -146,10 +146,6 @@ export default defineEventHandler(async (event) => {
|
|
|
146
146
|
})
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
::note
|
|
150
|
-
Giving the `event` as argument to `useRuntimeConfig` is optional, but it is recommended to pass it to get the runtime config overwritten by [environment variables](/docs/4.x/guide/going-further/runtime-config#environment-variables) at runtime for server routes.
|
|
151
|
-
::
|
|
152
|
-
|
|
153
149
|
## Typing Runtime Config
|
|
154
150
|
|
|
155
151
|
Nuxt tries to automatically generate a typescript interface from provided runtime config using [unjs/untyped](https://github.com/unjs/untyped).
|