@nuxt/docs-nightly 5.0.0-29741502.a0eea766 → 5.0.0-29741513.94de156f
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.
- package/1.getting-started/02.installation.md +1 -1
- package/2.directory-structure/1.app/3.app-config.md +2 -0
- package/4.api/1.components/13.nuxt-time.md +1 -0
- package/4.api/1.components/14.nuxt-announcer.md +1 -1
- package/4.api/2.composables/use-announcer.md +1 -1
- package/4.api/2.composables/use-nuxt-app.md +1 -1
- package/4.api/3.utils/define-lazy-hydration-component.md +1 -0
- package/4.api/4.commands/build.md +1 -1
- package/4.api/4.commands/dev.md +1 -1
- package/4.api/4.commands/generate.md +1 -1
- package/4.api/5.kit/11.app-config.md +1 -0
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ Well done! A browser window should automatically open for <http://localhost:3000
|
|
|
110
110
|
::tip{icon="i-lucide-container"}
|
|
111
111
|
If you're using Docker or want a consistent development environment across machines, consider using a dev container.
|
|
112
112
|
|
|
113
|
-
[Learn more about dev containers](/docs/
|
|
113
|
+
[Learn more about dev containers](/docs/5.x/guide/best-practices/devcontainers)
|
|
114
114
|
::
|
|
115
115
|
|
|
116
116
|
::
|
|
@@ -67,6 +67,8 @@ Read more about the `updateAppConfig` utility.
|
|
|
67
67
|
|
|
68
68
|
Nuxt tries to automatically generate a TypeScript interface from provided app config so you won't have to type it yourself.
|
|
69
69
|
|
|
70
|
+
The fully inferred type is only available in app code (components, composables, plugins and so on). In server routes, code in the `shared/` directory and `nuxt.config`, keys defined in `app.config` files are typed as `unknown` instead: typing them there would require typechecking your app code outside the app context, where app auto-imports are not available. Keys defined inline in the `appConfig` option of `nuxt.config` are typed everywhere. If you need other keys typed outside app code, you can extend the `AppConfig` interface as described below. The location of the augmentation file determines which contexts see it: a `.d.ts` file in the `shared/` directory covers app code, shared code and server routes.
|
|
71
|
+
|
|
70
72
|
However, there are some cases where you might want to type it yourself. There are two possible things you might want to type.
|
|
71
73
|
|
|
72
74
|
### App Config Input
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: '<NuxtAnnouncer>'
|
|
3
3
|
description: 'The <NuxtAnnouncer> component adds a hidden element to announce dynamic content changes to assistive technologies.'
|
|
4
|
-
minimalVersion: "
|
|
4
|
+
minimalVersion: "4.4"
|
|
5
5
|
links:
|
|
6
6
|
- label: Source
|
|
7
7
|
icon: i-simple-icons-github
|
|
@@ -136,7 +136,7 @@ Nuxt exposes the following properties through `ssrContext`:
|
|
|
136
136
|
|
|
137
137
|
It is also possible to use more advanced types, such as `ref`, `reactive`, `shallowRef`, `shallowReactive` and `NuxtError`.
|
|
138
138
|
|
|
139
|
-
#### Custom Reducer/Reviver
|
|
139
|
+
#### Custom Reducer/Reviver :badge[v3.4]{color="info" size="xs" class="align-middle"}
|
|
140
140
|
|
|
141
141
|
Since [Nuxt v3.4](https://nuxt.com/blog/v3-4#payload-enhancements), it is possible to define your own reducer/reviver for types that are not supported by Nuxt.
|
|
142
142
|
|
|
@@ -36,7 +36,7 @@ The `build` command creates a `.output` directory with all your application, ser
|
|
|
36
36
|
| `--dotenv` | | Path to `.env` file to load, relative to the root directory |
|
|
37
37
|
| `--envName` | | The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server) |
|
|
38
38
|
| `-e, --extends=<layer-name>` | | Extend from a Nuxt layer |
|
|
39
|
-
| `--profile`
|
|
39
|
+
| `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
|
|
40
40
|
<!--/build-opts-->
|
|
41
41
|
|
|
42
42
|
::note
|
package/4.api/4.commands/dev.md
CHANGED
|
@@ -45,7 +45,7 @@ The `dev` command starts a development server with hot module replacement at [ht
|
|
|
45
45
|
| `--qr` | | Display The QR code of public URL when available |
|
|
46
46
|
| `--public` | | Listen to all network interfaces |
|
|
47
47
|
| `--tunnel` | | Open a tunnel using https://github.com/unjs/untun |
|
|
48
|
-
| `--profile`
|
|
48
|
+
| `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
|
|
49
49
|
| `--sslCert` | | (DEPRECATED) Use `--https.cert` instead. |
|
|
50
50
|
| `--sslKey` | | (DEPRECATED) Use `--https.key` instead. |
|
|
51
51
|
<!--/dev-opts-->
|
|
@@ -35,7 +35,7 @@ The `generate` command pre-renders every route of your application and stores th
|
|
|
35
35
|
| `--dotenv` | | Path to `.env` file to load, relative to the root directory |
|
|
36
36
|
| `--envName` | | The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server) |
|
|
37
37
|
| `-e, --extends=<layer-name>` | | Extend from a Nuxt layer |
|
|
38
|
-
| `--profile`
|
|
38
|
+
| `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
|
|
39
39
|
<!--/generate-opts-->
|
|
40
40
|
|
|
41
41
|
::read-more{to="/docs/4.x/getting-started/deployment#static-hosting"}
|