@nuxt/docs-nightly 5.0.0-2610051217-b1d4e98 → 5.0.0-2610051235-e7973c0
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.
|
@@ -565,6 +565,7 @@ Server auto-imports are [off by default in Nuxt 5](#server-auto-imports-are-now-
|
|
|
565
565
|
| `createError({ statusCode, statusMessage })` | `createError({ status, statusText })` |
|
|
566
566
|
| `isError(error)` | `isNuxtError(error)` |
|
|
567
567
|
| h3's `useSession`, `getSession`, `updateSession` and `clearSession` seal an `h3` cookie with the `password` you pass. | They seal a `nuxt-session` cookie, by default with a secret derived from `appSecret`. A session one issues does not unseal with the other, so users get a new session once. See [Sessions Come From `nuxt/server`](#sessions-come-from-nuxtserver). |
|
|
568
|
+
| `useRuntimeConfig(event)` | `useRuntimeConfig()`. There is no per-request form. |
|
|
568
569
|
| Global `$fetch` | Not part of `nuxt/server`. Call a route of the app with `serverFetch(event, path)`, which returns a `Response`. For other URLs, plain `fetch` does not throw on a non-2xx status and does not parse JSON: check `response.ok` and call `response.json()`. |
|
|
569
570
|
| `event.path` | `getRequestURL(event).pathname`, or `event.url.pathname`. |
|
|
570
571
|
| `event.node` | Not available. Use `event.req` and `event.res`. |
|