@nuxt/docs-nightly 5.0.0-29696159.6cc89013 → 5.0.0-29696180.31c0a59a
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.
|
@@ -349,10 +349,6 @@ NUXT_GITHUB_TOKEN='<my-super-token>'
|
|
|
349
349
|
```
|
|
350
350
|
::
|
|
351
351
|
|
|
352
|
-
::note
|
|
353
|
-
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.
|
|
354
|
-
::
|
|
355
|
-
|
|
356
352
|
### Request Cookies
|
|
357
353
|
|
|
358
354
|
```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).
|