@nuxt/docs-nightly 4.3.0-29461891.8f4fbecd → 4.3.0-29466366.fa21bb17
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 +0 -1
- package/1.getting-started/03.configuration.md +7 -2
- package/1.getting-started/15.prerendering.md +2 -0
- package/1.getting-started/16.deployment.md +1 -0
- package/2.directory-structure/3.tsconfig.md +1 -0
- package/3.guide/1.concepts/1.rendering.md +1 -0
- package/5.community/4.contribution.md +1 -1
- package/5.community/6.roadmap.md +1 -1
- package/5.community/7.changelog.md +10 -0
- package/package.json +1 -1
|
@@ -27,7 +27,6 @@ Or follow the steps below to set up a new Nuxt project on your computer.
|
|
|
27
27
|
::details
|
|
28
28
|
:summary[Additional notes for an optimal setup:]
|
|
29
29
|
- **Node.js**: Make sure to use an even numbered version (20, 22, etc.)
|
|
30
|
-
- **Nuxtr**: Install the community-developed [Nuxtr extension](https://marketplace.visualstudio.com/items?itemName=Nuxtr.nuxtr-vscode)
|
|
31
30
|
- **WSL**: If you are using Windows and experience slow HMR, you may want to try using [WSL (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/install) which may solve some performance issues.
|
|
32
31
|
- **Windows slow DNS resolution**: Instead of using `localhost:3000` for local dev server on Windows, use `127.0.0.1` for much faster loading experience on browsers.
|
|
33
32
|
::
|
|
@@ -140,8 +140,13 @@ As stated above, `runtimeConfig` and `app.config` are both used to expose variab
|
|
|
140
140
|
| Reactive | ✅ Yes | ✅ Yes |
|
|
141
141
|
| Types support | ✅ Partial | ✅ Yes |
|
|
142
142
|
| Configuration per Request | ❌ No | ✅ Yes |
|
|
143
|
-
|
|
|
144
|
-
|
|
|
143
|
+
| Client-side | Hydrated | Bundled |
|
|
144
|
+
| Environment variables | ✅ Yes | ❌ No |
|
|
145
|
+
| Reactive | ✅ Yes | ✅ Yes |
|
|
146
|
+
| Types support | ✅ Partial | ✅ Yes |
|
|
147
|
+
| Configuration per request | ❌ No | ✅ Yes |
|
|
148
|
+
| Hot module replacement | ❌ No | ✅ Yes |
|
|
149
|
+
| Non-primitive JS types | ❌ No | ✅ Yes |
|
|
145
150
|
|
|
146
151
|
## External Configuration Files
|
|
147
152
|
|
|
@@ -54,6 +54,7 @@ Read more about the `nuxt generate` command.
|
|
|
54
54
|
You can manually specify routes that [Nitro](/docs/4.x/guide/concepts/server-engine) will fetch and pre-render during the build or ignore routes that you don't want to pre-render like `/dynamic` in the `nuxt.config` file:
|
|
55
55
|
|
|
56
56
|
```ts twoslash [nuxt.config.ts]
|
|
57
|
+
// @errors: 2353
|
|
57
58
|
export default defineNuxtConfig({
|
|
58
59
|
nitro: {
|
|
59
60
|
prerender: {
|
|
@@ -67,6 +68,7 @@ export default defineNuxtConfig({
|
|
|
67
68
|
You can combine this with the `crawlLinks` option to pre-render a set of routes that the crawler can't discover like your `/sitemap.xml` or `/robots.txt`:
|
|
68
69
|
|
|
69
70
|
```ts twoslash [nuxt.config.ts]
|
|
71
|
+
// @errors: 2353
|
|
70
72
|
export default defineNuxtConfig({
|
|
71
73
|
nitro: {
|
|
72
74
|
prerender: {
|
|
@@ -98,6 +98,7 @@ In addition to Node.js servers and static hosting services, a Nuxt project can b
|
|
|
98
98
|
You can explicitly set the desired preset in the [`nuxt.config.ts`](/docs/4.x/directory-structure/nuxt-config) file:
|
|
99
99
|
|
|
100
100
|
```ts twoslash [nuxt.config.ts]
|
|
101
|
+
// @errors: 2353
|
|
101
102
|
export default defineNuxtConfig({
|
|
102
103
|
nitro: {
|
|
103
104
|
preset: 'node-server',
|
|
@@ -42,6 +42,7 @@ Read more about the different type contexts of a Nuxt project here.
|
|
|
42
42
|
You can customize the TypeScript configuration of your Nuxt project for each context (`app`, `shared`, `node`, and `server`) in the `nuxt.config.ts` file.
|
|
43
43
|
<!-- @case-police-ignore tsConfig -->
|
|
44
44
|
```ts twoslash [nuxt.config.ts]
|
|
45
|
+
// @errors: 2353
|
|
45
46
|
export default defineNuxtConfig({
|
|
46
47
|
typescript: {
|
|
47
48
|
// customize tsconfig.app.json
|
|
@@ -131,6 +131,7 @@ The `200.html` and `404.html` might be useful for the hosting provider you are u
|
|
|
131
131
|
When prerendering a client-rendered app, Nuxt will generate `index.html`, `200.html` and `404.html` files by default. However, if you need to prevent any (or all) of these files from being generated in your build, you can use the `'prerender:generate'` hook from [Nitro](/docs/4.x/getting-started/prerendering#prerendergenerate-nitro-hook).
|
|
132
132
|
|
|
133
133
|
```ts twoslash [nuxt.config.ts]
|
|
134
|
+
// @errors: 2353 7006
|
|
134
135
|
export default defineNuxtConfig({
|
|
135
136
|
ssr: false,
|
|
136
137
|
nitro: {
|
|
@@ -134,7 +134,7 @@ We recommend the following libraries which are used throughout the ecosystem:
|
|
|
134
134
|
|
|
135
135
|
* [pathe](https://github.com/unjs/pathe) - universal path utilities (replacement for node `path`)
|
|
136
136
|
* [ufo](https://github.com/unjs/ufo) - URL parsing and joining utilities
|
|
137
|
-
* [
|
|
137
|
+
* [obuild](https://github.com/unjs/obuild) - rolldown-powered build system
|
|
138
138
|
* ... check out the rest of the [unjs/](https://github.com/unjs) organization for many more!
|
|
139
139
|
|
|
140
140
|
#### Use ESM Syntax and Default to `type: module`
|
package/5.community/6.roadmap.md
CHANGED
|
@@ -42,7 +42,7 @@ In addition to the Nuxt framework, there are modules that are vital for the ecos
|
|
|
42
42
|
|----------------------------------------|--------------|--------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
43
43
|
| [Scripts](https://scripts.nuxt.com) | Public Beta | 3.x, 4.x | [nuxt/scripts](https://github.com/nuxt/scripts) | Easy 3rd party script management. |
|
|
44
44
|
| Auth Utils | Planned | 4.x, 5.x | `nuxt/auth-utils` to be announced | The temporary repository [atinux/nuxt-auth-utils](https://github.com/atinux/nuxt-auth-utils) is available while awaiting its official integration into Nuxt via RFC. |
|
|
45
|
-
|
|
|
45
|
+
| [a11y](https://github.com/nuxt/a11y) | Public Alpha | 3.x, 4.x | [nuxt/a11y](https://github.com/nuxt/a11y). | Real-time accessibility feedback and automated testing in your browser during development (see [nuxt/nuxt#23255](https://github.com/nuxt/nuxt/issues/23255)). |
|
|
46
46
|
| [Hints](https://github.com/nuxt/hints) | Public Alpha | 4.x, 5.x | [nuxt/hints](https://github.com/nuxt/hints) | Guidance and suggestions for enhancing development practices. |
|
|
47
47
|
|
|
48
48
|
## Release Cycle
|
|
@@ -28,6 +28,16 @@ navigation.icon: i-lucide-bell-dot
|
|
|
28
28
|
::card
|
|
29
29
|
---
|
|
30
30
|
icon: i-simple-icons-github
|
|
31
|
+
title: nuxt/a11y
|
|
32
|
+
to: https://github.com/nuxt/a11y/releases
|
|
33
|
+
target: _blank
|
|
34
|
+
ui.icon.base: text-black dark:text-white
|
|
35
|
+
---
|
|
36
|
+
Nuxt A11y releases.
|
|
37
|
+
::
|
|
38
|
+
::card
|
|
39
|
+
---
|
|
40
|
+
icon: i-simple-icons-github
|
|
31
41
|
title: nuxt/content
|
|
32
42
|
to: https://github.com/nuxt/content/releases
|
|
33
43
|
target: _blank
|