@nuxt/docs 4.2.0 → 4.2.1

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.
Files changed (93) hide show
  1. package/1.getting-started/02.installation.md +3 -3
  2. package/1.getting-started/03.configuration.md +4 -4
  3. package/1.getting-started/04.views.md +2 -2
  4. package/1.getting-started/05.assets.md +1 -1
  5. package/1.getting-started/06.styling.md +11 -11
  6. package/1.getting-started/07.routing.md +4 -0
  7. package/1.getting-started/09.transitions.md +6 -6
  8. package/1.getting-started/10.data-fetching.md +14 -14
  9. package/1.getting-started/11.state-management.md +2 -2
  10. package/1.getting-started/12.error-handling.md +4 -4
  11. package/1.getting-started/13.server.md +4 -4
  12. package/1.getting-started/14.layers.md +29 -10
  13. package/1.getting-started/17.testing.md +3 -3
  14. package/1.getting-started/18.upgrade.md +19 -11
  15. package/2.guide/1.directory-structure/1.app/1.components.md +4 -4
  16. package/2.guide/1.directory-structure/1.app/1.composables.md +1 -1
  17. package/2.guide/1.directory-structure/1.app/1.layouts.md +2 -2
  18. package/2.guide/1.directory-structure/1.app/1.middleware.md +4 -4
  19. package/2.guide/1.directory-structure/1.app/1.pages.md +13 -13
  20. package/2.guide/1.directory-structure/1.app/1.plugins.md +1 -5
  21. package/2.guide/1.directory-structure/1.node_modules.md +1 -1
  22. package/2.guide/1.directory-structure/1.public.md +1 -1
  23. package/2.guide/1.directory-structure/1.server.md +5 -5
  24. package/2.guide/1.directory-structure/2.env.md +1 -1
  25. package/2.guide/1.directory-structure/3.tsconfig.md +38 -7
  26. package/2.guide/2.concepts/1.auto-imports.md +2 -2
  27. package/2.guide/2.concepts/10.nuxt-lifecycle.md +3 -3
  28. package/2.guide/2.concepts/2.vuejs-development.md +3 -3
  29. package/2.guide/2.concepts/3.rendering.md +4 -4
  30. package/2.guide/2.concepts/7.esm.md +2 -2
  31. package/2.guide/2.concepts/8.typescript.md +15 -38
  32. package/2.guide/2.concepts/9.code-style.md +1 -1
  33. package/2.guide/3.going-further/1.experimental-features.md +6 -6
  34. package/2.guide/3.going-further/1.features.md +1 -1
  35. package/2.guide/3.going-further/1.internals.md +2 -2
  36. package/2.guide/3.going-further/2.hooks.md +1 -1
  37. package/2.guide/3.going-further/3.modules.md +77 -10
  38. package/2.guide/3.going-further/6.nuxt-app.md +5 -5
  39. package/2.guide/3.going-further/7.layers.md +32 -15
  40. package/2.guide/3.going-further/9.debugging.md +1 -1
  41. package/2.guide/4.recipes/1.custom-routing.md +4 -4
  42. package/2.guide/4.recipes/3.custom-usefetch.md +1 -1
  43. package/2.guide/5.best-practices/hydration.md +1 -1
  44. package/3.api/1.components/10.nuxt-picture.md +1 -1
  45. package/3.api/1.components/11.teleports.md +1 -1
  46. package/3.api/1.components/12.nuxt-route-announcer.md +1 -1
  47. package/3.api/1.components/2.nuxt-page.md +1 -1
  48. package/3.api/1.components/4.nuxt-link.md +11 -11
  49. package/3.api/1.components/5.nuxt-loading-indicator.md +1 -1
  50. package/3.api/1.components/6.nuxt-error-boundary.md +1 -1
  51. package/3.api/2.composables/use-app-config.md +1 -1
  52. package/3.api/2.composables/use-async-data.md +76 -13
  53. package/3.api/2.composables/use-cookie.md +7 -7
  54. package/3.api/2.composables/use-fetch.md +2 -2
  55. package/3.api/2.composables/use-head-safe.md +37 -20
  56. package/3.api/2.composables/use-head.md +136 -36
  57. package/3.api/2.composables/use-hydration.md +24 -18
  58. package/3.api/2.composables/use-lazy-async-data.md +58 -9
  59. package/3.api/2.composables/use-lazy-fetch.md +65 -9
  60. package/3.api/2.composables/use-nuxt-app.md +7 -7
  61. package/3.api/2.composables/use-nuxt-data.md +1 -1
  62. package/3.api/2.composables/use-request-fetch.md +1 -1
  63. package/3.api/2.composables/use-route.md +1 -1
  64. package/3.api/2.composables/use-router.md +15 -15
  65. package/3.api/2.composables/use-runtime-hook.md +1 -1
  66. package/3.api/2.composables/use-state.md +1 -1
  67. package/3.api/3.utils/abort-navigation.md +2 -2
  68. package/3.api/3.utils/define-lazy-hydration-component.md +4 -4
  69. package/3.api/3.utils/define-nuxt-component.md +1 -1
  70. package/3.api/3.utils/define-nuxt-plugin.md +1 -1
  71. package/3.api/3.utils/define-nuxt-route-middleware.md +1 -1
  72. package/3.api/3.utils/define-page-meta.md +8 -8
  73. package/3.api/3.utils/navigate-to.md +5 -5
  74. package/3.api/3.utils/on-before-route-leave.md +1 -1
  75. package/3.api/3.utils/on-before-route-update.md +1 -1
  76. package/3.api/3.utils/refresh-cookie.md +1 -1
  77. package/3.api/3.utils/update-app-config.md +2 -2
  78. package/3.api/5.kit/1.modules.md +3 -3
  79. package/3.api/5.kit/14.builder.md +6 -6
  80. package/3.api/5.kit/2.programmatic.md +2 -2
  81. package/3.api/6.advanced/1.hooks.md +5 -5
  82. package/3.api/6.nuxt-config.md +25 -25
  83. package/5.community/3.reporting-bugs.md +1 -1
  84. package/5.community/4.contribution.md +1 -1
  85. package/5.community/5.framework-contribution.md +8 -8
  86. package/5.community/6.roadmap.md +3 -3
  87. package/6.bridge/4.plugins-and-middleware.md +1 -1
  88. package/7.migration/2.configuration.md +2 -2
  89. package/7.migration/20.module-authors.md +1 -1
  90. package/7.migration/5.plugins-and-middleware.md +1 -1
  91. package/7.migration/6.pages-and-layouts.md +2 -2
  92. package/README.md +1 -1
  93. package/package.json +1 -1
@@ -202,7 +202,7 @@ This can be overridden with `definePageMeta` on an individual page. Only JSON-se
202
202
  - **Type**: `boolean`
203
203
  - **Default:** `false`
204
204
 
205
- **See**: [Vue KeepAlive](https://vuejs.org/api/built-in-components.html#keepalive)
205
+ **See**: [Vue KeepAlive](https://vuejs.org/api/built-in-components#keepalive)
206
206
 
207
207
  ### `layoutTransition`
208
208
 
@@ -213,7 +213,7 @@ This can be overridden with `definePageMeta` on an individual page. Only JSON-se
213
213
  - **Type**: `boolean`
214
214
  - **Default:** `false`
215
215
 
216
- **See**: [Vue Transition docs](https://vuejs.org/api/built-in-components.html#transition)
216
+ **See**: [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
217
217
 
218
218
  ### `pageTransition`
219
219
 
@@ -224,7 +224,7 @@ This can be overridden with `definePageMeta` on an individual page. Only JSON-se
224
224
  - **Type**: `boolean`
225
225
  - **Default:** `false`
226
226
 
227
- **See**: [Vue Transition docs](https://vuejs.org/api/built-in-components.html#transition)
227
+ **See**: [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
228
228
 
229
229
  ### `rootAttrs`
230
230
 
@@ -339,7 +339,7 @@ Shared build configuration.
339
339
 
340
340
  Nuxt allows visualizing your bundles and how to optimize them.
341
341
 
342
- Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
342
+ Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
343
343
 
344
344
  - **Type**: `object`
345
345
  - **Default**
@@ -1146,7 +1146,7 @@ and these plugins do not need to be listed in `nuxt.config` unless you
1146
1146
  need to customize their order. All plugins are deduplicated by their src path.
1147
1147
  ::
1148
1148
 
1149
- **See**: [`app/plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/plugins)
1149
+ **See**: [`app/plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/plugins)
1150
1150
 
1151
1151
  **Example**:
1152
1152
  ```ts
@@ -1217,7 +1217,7 @@ Additional router options passed to `vue-router`. On top of the options for `vue
1217
1217
  For more control, you can use an `router.options.ts` file.
1218
1218
  ::
1219
1219
 
1220
- **See**: [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions.html).
1220
+ **See**: [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions)
1221
1221
 
1222
1222
  #### `hashMode`
1223
1223
 
@@ -1586,7 +1586,7 @@ export default defineNuxtConfig({
1586
1586
 
1587
1587
  Configuration that will be passed directly to Vite.
1588
1588
 
1589
- **See**: [Vite configuration docs](https://vite.dev/config) for more information.
1589
+ **See**: [Vite configuration docs](https://vite.dev/config/) for more information.
1590
1590
  Please note that not all vite options are supported in Nuxt.
1591
1591
 
1592
1592
  ### `build`
@@ -1785,13 +1785,13 @@ Vue.js config
1785
1785
 
1786
1786
  Options for the Vue compiler that will be passed at build time.
1787
1787
 
1788
- **See**: [Vue documentation](https://vuejs.org/api/application.html#app-config-compileroptions)
1788
+ **See**: [Vue documentation](https://vuejs.org/api/application#app-config-compileroptions)
1789
1789
 
1790
1790
  ### `config`
1791
1791
 
1792
- It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin..
1792
+ It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin.
1793
1793
 
1794
- **See**: [Vue app config documentation](https://vuejs.org/api/application.html#app-config)
1794
+ **See**: [Vue app config documentation](https://vuejs.org/api/application#app-config)
1795
1795
 
1796
1796
  ### `propsDestructure`
1797
1797
 
@@ -1918,7 +1918,7 @@ Hard-replaces `typeof process`, `typeof window` and `typeof document` to tree-sh
1918
1918
 
1919
1919
  If you are using webpack, Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them.
1920
1920
 
1921
- Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
1921
+ Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
1922
1922
 
1923
1923
  - **Type**: `object`
1924
1924
  - **Default**
@@ -1965,7 +1965,7 @@ Configure [webpack experiments](https://webpack.js.org/configuration/experiments
1965
1965
 
1966
1966
  Enables Common CSS Extraction.
1967
1967
 
1968
- Using [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) under the hood, your CSS will be extracted into separate files, usually one per component. This allows caching your CSS and JavaScript separately.
1968
+ Using [mini-css-extract-plugin](https://github.com/webpack/mini-css-extract-plugin) under the hood, your CSS will be extracted into separate files, usually one per component. This allows caching your CSS and JavaScript separately.
1969
1969
 
1970
1970
  - **Type**: `boolean`
1971
1971
  - **Default:** `true`
@@ -2067,7 +2067,7 @@ Set to `false` to disable the overlay provided by [FriendlyErrorsWebpackPlugin](
2067
2067
 
2068
2068
  ### `hotMiddleware`
2069
2069
 
2070
- See [webpack-hot-middleware](https://github.com/webpack-contrib/webpack-hot-middleware) for available options.
2070
+ See [webpack-hot-middleware](https://github.com/webpack/webpack-hot-middleware) for available options.
2071
2071
 
2072
2072
  ### `loaders`
2073
2073
 
@@ -2075,7 +2075,7 @@ Customize the options of Nuxt's integrated webpack loaders.
2075
2075
 
2076
2076
  #### `css`
2077
2077
 
2078
- See [css-loader](https://github.com/webpack-contrib/css-loader) for available options.
2078
+ See [css-loader](https://github.com/webpack/css-loader) for available options.
2079
2079
 
2080
2080
  ##### `esModule`
2081
2081
 
@@ -2095,7 +2095,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2095
2095
 
2096
2096
  #### `cssModules`
2097
2097
 
2098
- See [css-loader](https://github.com/webpack-contrib/css-loader) for available options.
2098
+ See [css-loader](https://github.com/webpack/css-loader) for available options.
2099
2099
 
2100
2100
  ##### `esModule`
2101
2101
 
@@ -2133,11 +2133,11 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2133
2133
  }
2134
2134
  ```
2135
2135
 
2136
- **See**: [esbuild loader](https://github.com/esbuild-kit/esbuild-loader)
2136
+ **See**: [esbuild loader](https://github.com/privatenumber/esbuild-loader)
2137
2137
 
2138
2138
  #### `file`
2139
2139
 
2140
- **See**: [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options)
2140
+ **See**: [`file-loader` Options](https://github.com/webpack/file-loader#options)
2141
2141
 
2142
2142
  **Default**:
2143
2143
  ```json
@@ -2156,7 +2156,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2156
2156
 
2157
2157
  #### `fontUrl`
2158
2158
 
2159
- **See**: [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options)
2159
+ **See**: [`file-loader` Options](https://github.com/webpack/file-loader#options)
2160
2160
 
2161
2161
  **Default**:
2162
2162
  ```json
@@ -2175,7 +2175,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2175
2175
 
2176
2176
  #### `imgUrl`
2177
2177
 
2178
- **See**: [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options)
2178
+ **See**: [`file-loader` Options](https://github.com/webpack/file-loader#options)
2179
2179
 
2180
2180
  **Default**:
2181
2181
  ```json
@@ -2201,7 +2201,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2201
2201
  }
2202
2202
  ```
2203
2203
 
2204
- **See**: [`less-loader` Options](https://github.com/webpack-contrib/less-loader#options)
2204
+ **See**: [`less-loader` Options](https://github.com/webpack/less-loader#options)
2205
2205
 
2206
2206
  #### `pugPlain`
2207
2207
 
@@ -2209,7 +2209,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2209
2209
 
2210
2210
  #### `sass`
2211
2211
 
2212
- **See**: [`sass-loader` Options](https://github.com/webpack-contrib/sass-loader#options)
2212
+ **See**: [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
2213
2213
 
2214
2214
  **Default**:
2215
2215
  ```json
@@ -2236,7 +2236,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2236
2236
  }
2237
2237
  ```
2238
2238
 
2239
- **See**: [`sass-loader` Options](https://github.com/webpack-contrib/sass-loader#options)
2239
+ **See**: [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
2240
2240
 
2241
2241
  #### `stylus`
2242
2242
 
@@ -2247,7 +2247,7 @@ See [css-loader](https://github.com/webpack-contrib/css-loader) for available op
2247
2247
  }
2248
2248
  ```
2249
2249
 
2250
- **See**: [`stylus-loader` Options](https://github.com/webpack-contrib/stylus-loader#options)
2250
+ **See**: [`stylus-loader` Options](https://github.com/webpack/stylus-loader#options)
2251
2251
 
2252
2252
  #### `vue`
2253
2253
 
@@ -2341,7 +2341,7 @@ Defaults to true when `extractCSS` is enabled.
2341
2341
  - **Type**: `boolean`
2342
2342
  - **Default:** `false`
2343
2343
 
2344
- **See**: [css-minimizer-webpack-plugin documentation](https://github.com/webpack-contrib/css-minimizer-webpack-plugin).
2344
+ **See**: [css-minimizer-webpack-plugin documentation](https://github.com/webpack/css-minimizer-webpack-plugin).
2345
2345
 
2346
2346
  ### `plugins`
2347
2347
 
@@ -2368,7 +2368,7 @@ export default defineNuxtConfig({
2368
2368
 
2369
2369
  ### `postcss`
2370
2370
 
2371
- Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack-contrib/postcss-loader#options)
2371
+ Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack/postcss-loader#options)
2372
2372
 
2373
2373
  #### `postcssOptions`
2374
2374
 
@@ -39,7 +39,7 @@ If your issue concerns Vue or Vite, please try to reproduce it first with the Vu
39
39
 
40
40
  ::card-group
41
41
  :card{title="Vue SSR on StackBlitz" icon="i-simple-icons-stackblitz" to="https://stackblitz.com/github/nuxt-contrib/vue3-ssr-starter/tree/main?terminal=dev" target="_blank"}
42
- :card{title="Vue SSR on CodeSandbox" icon="i-simple-icons-codesandbox" to="https://codesandbox.io/s/github/nuxt-contrib/vue3-ssr-starter/main" target="_blank"}
42
+ :card{title="Vue SSR on CodeSandbox" icon="i-simple-icons-codesandbox" to="https://codesandbox.io/p/sandbox/github/nuxt-contrib/vue3-ssr-starter/main" target="_blank"}
43
43
  :card{title="Vue SSR Template on GitHub" icon="i-simple-icons-github" to="https://github.com/nuxt-contrib/vue3-ssr-starter/generate" target="_blank"}
44
44
  ::
45
45
 
@@ -143,7 +143,7 @@ Most of the Nuxt ecosystem can consume ESM directly. In general we advocate that
143
143
 
144
144
  #### What's Corepack
145
145
 
146
- [Corepack](https://nodejs.org/api/corepack.html) makes sure you are using the correct version for package manager when you run corresponding commands. Projects might have `packageManager` field in their `package.json`.
146
+ [Corepack](https://github.com/nodejs/corepack) makes sure you are using the correct version for package manager when you run corresponding commands. Projects might have `packageManager` field in their `package.json`.
147
147
 
148
148
  Under projects with configuration as shown below, Corepack will install `v7.5.0` of `pnpm` (if you don't have it already) and use it to run your commands.
149
149
 
@@ -8,19 +8,19 @@ Once you've read the [general contribution guide](/docs/4.x/community/contributi
8
8
 
9
9
  ## Monorepo Guide
10
10
 
11
- - `packages/kit`: Toolkit for authoring Nuxt Modules, published as [`@nuxt/kit`](https://npmjs.com/package/@nuxt/kit).
12
- - `packages/nuxt`: The core of Nuxt, published as [`nuxt`](https://npmjs.com/package/nuxt).
13
- - `packages/schema`: Cross-version Nuxt typedefs and defaults, published as [`@nuxt/schema`](https://npmjs.com/package/@nuxt/schema).
14
- - `packages/rspack`: The [Rspack](https://rspack.dev) bundler for Nuxt, published as [`@nuxt/rspack-builder`](https://npmjs.com/package/@nuxt/rspack-builder).
15
- - `packages/vite`: The [Vite](https://vite.dev) bundler for Nuxt, published as [`@nuxt/vite-builder`](https://npmjs.com/package/@nuxt/vite-builder).
16
- - `packages/webpack`: The [webpack](https://webpack.js.org) bundler for Nuxt, published as [`@nuxt/webpack-builder`](https://npmjs.com/package/@nuxt/webpack-builder).
11
+ - `packages/kit`: Toolkit for authoring Nuxt Modules, published as [`@nuxt/kit`](https://www.npmjs.com/package/@nuxt/kit).
12
+ - `packages/nuxt`: The core of Nuxt, published as [`nuxt`](https://www.npmjs.com/package/nuxt).
13
+ - `packages/schema`: Cross-version Nuxt typedefs and defaults, published as [`@nuxt/schema`](https://www.npmjs.com/package/@nuxt/schema).
14
+ - `packages/rspack`: The [Rspack](https://rspack.rs) bundler for Nuxt, published as [`@nuxt/rspack-builder`](https://www.npmjs.com/package/@nuxt/rspack-builder).
15
+ - `packages/vite`: The [Vite](https://vite.dev) bundler for Nuxt, published as [`@nuxt/vite-builder`](https://www.npmjs.com/package/@nuxt/vite-builder).
16
+ - `packages/webpack`: The [webpack](https://webpack.js.org) bundler for Nuxt, published as [`@nuxt/webpack-builder`](https://www.npmjs.com/package/@nuxt/webpack-builder).
17
17
 
18
18
  ## Setup
19
19
 
20
20
  To contribute to Nuxt, you need to set up a local environment.
21
21
 
22
- 1. [Fork](https://help.github.com/articles/fork-a-repo) the [`nuxt/nuxt`](https://github.com/nuxt/nuxt) repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository) it to your local device.
23
- 2. Ensure using the latest [Node.js](https://nodejs.org/en) (20.x)
22
+ 1. [Fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) the [`nuxt/nuxt`](https://github.com/nuxt/nuxt) repository to your own GitHub account and then [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) it to your local device.
23
+ 2. Ensure using the latest [Node.js](https://nodejs.org/en)
24
24
  3. Enable [Corepack](https://github.com/nodejs/corepack) to have `pnpm` and `yarn`
25
25
  ```bash [Terminal]
26
26
  corepack enable
@@ -68,9 +68,9 @@ Each active version has its own nightly releases which are generated automatical
68
68
  Release | | Initial release | End Of Life | Docs
69
69
  -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ---------------------------- | ---------------------------------------
70
70
  **5.x** (scheduled) | | Q4 2025 (estimated) | TBA |  
71
- **4.x** (stable) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt latest version" src="https://flat.badgen.net/npm/v/nuxt?label=" class="not-prose"></a> | 2025-07-16 | 6 months after 5.x release | [nuxt.com](/docs/4.x)
72
- **3.x** (maintenance) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt 3.x version" src="https://flat.badgen.net/npm/v/nuxt/3x?label=" class="not-prose"></a> | 2022-11-16 | 2026-01-31 | [nuxt.com](/docs/3.x)
73
- **2.x** (unsupported) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt 2.x version" src="https://flat.badgen.net/npm/v/nuxt/2x?label=" class="not-prose"></a> | 2018-09-21 | 2024-06-30 | [v2.nuxt.com](https://v2.nuxt.com/docs)
71
+ **4.x** (stable) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt latest version" src="https://flat.badgen.net/npm/v/nuxt?label=" class="not-prose"></a> | 2025-07-16 | 6 months after 5.x release | [nuxt.com](/docs/4.x/getting-started/introduction)
72
+ **3.x** (maintenance) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt 3.x version" src="https://flat.badgen.net/npm/v/nuxt/3x?label=" class="not-prose"></a> | 2022-11-16 | 2026-01-31 | [nuxt.com](/docs/3.x/getting-started/introduction)
73
+ **2.x** (unsupported) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt 2.x version" src="https://flat.badgen.net/npm/v/nuxt/2x?label=" class="not-prose"></a> | 2018-09-21 | 2024-06-30 | [v2.nuxt.com](https://v2.nuxt.com/docs/get-started/installation/)
74
74
  **1.x** (unsupported) | <a href="https://www.npmjs.com/package/nuxt?activeTab=versions"><img alt="Nuxt 1.x version" src="https://flat.badgen.net/npm/v/nuxt/1x?label=" class="not-prose"></a> | 2018-01-08 | 2019-09-21 | &nbsp;
75
75
 
76
76
  ### Support Status
@@ -7,7 +7,7 @@ description: 'Learn how to migrate from Nuxt 2 to Nuxt Bridge new plugins and mi
7
7
 
8
8
  You can now migrate to the Nuxt 3 plugins API, which is slightly different in format from Nuxt 2.
9
9
 
10
- Plugins now take only one argument (`nuxtApp`). You can find out more in [the docs](/docs/4.x/guide/directory-structure/plugins).
10
+ Plugins now take only one argument (`nuxtApp`). You can find out more in [the docs](/docs/4.x/guide/directory-structure/app/plugins).
11
11
 
12
12
  ```ts [app/plugins/hello.ts]
13
13
  export default defineNuxtPlugin((nuxtApp) => {
@@ -183,7 +183,7 @@ Nuxt can type-check your app using [`vue-tsc`](https://github.com/vuejs/language
183
183
 
184
184
  There are a number of changes to what is recommended Vue best practice, as well as a number of breaking changes between Vue 2 and 3.
185
185
 
186
- It is recommended to read the [Vue 3 migration guide](https://v3-migration.vuejs.org) and in particular the [breaking changes list](https://v3-migration.vuejs.org/breaking-changes).
186
+ It is recommended to read the [Vue 3 migration guide](https://v3-migration.vuejs.org) and in particular the [breaking changes list](https://v3-migration.vuejs.org/breaking-changes/).
187
187
 
188
188
  It is not currently possible to use the [Vue 3 migration build](https://v3-migration.vuejs.org/migration-build.html) with Nuxt 3.
189
189
 
@@ -227,7 +227,7 @@ export const useMainStore = defineStore('main', {
227
227
  })
228
228
  ```
229
229
 
230
- Create a [plugin](/docs/4.x/guide/directory-structure/plugins) file to globalize your store:
230
+ Create a [plugin](/docs/4.x/guide/directory-structure/app/plugins) file to globalize your store:
231
231
 
232
232
  ```ts [app/plugins/pinia.ts]
233
233
  import { useMainStore } from '~/store'
@@ -17,7 +17,7 @@ Explore Nuxt 3 compatible modules.
17
17
 
18
18
  Nuxt 3 plugins are **not** fully backward compatible with Nuxt 2.
19
19
 
20
- :read-more{to="/docs/4.x/guide/directory-structure/plugins"}
20
+ :read-more{to="/docs/4.x/guide/directory-structure/app/plugins"}
21
21
 
22
22
  ### Vue Compatibility
23
23
 
@@ -31,7 +31,7 @@ export default defineNuxtPlugin((nuxtApp) => {
31
31
 
32
32
  ::
33
33
 
34
- :read-more{to="/docs/4.x/guide/directory-structure/plugins"}
34
+ :read-more{to="/docs/4.x/guide/directory-structure/app/plugins"}
35
35
 
36
36
  ::read-more{to="/docs/4.x/api/composables/use-nuxt-app"}
37
37
  Read more about the format of `nuxtApp`.
@@ -13,13 +13,13 @@ If you don't have an `app.vue` file in your source directory, Nuxt will use its
13
13
 
14
14
  This file is a great place to put any custom code that needs to be run once when your app starts up, as well as any components that are present on every page of your app. For example, if you only have one layout, you can move this to `app.vue` instead.
15
15
 
16
- :read-more{to="/docs/4.x/guide/directory-structure/app"}
16
+ :read-more{to="/docs/4.x/guide/directory-structure/app/app"}
17
17
 
18
18
  :link-example{to="/docs/4.x/examples/hello-world"}
19
19
 
20
20
  ### Migration
21
21
 
22
- Consider creating an `app.vue` file and including any logic that needs to run once at the top-level of your app. You can check out [an example here](/docs/4.x/guide/directory-structure/app).
22
+ Consider creating an `app.vue` file and including any logic that needs to run once at the top-level of your app. You can check out [an example here](/docs/4.x/guide/directory-structure/app/app).
23
23
 
24
24
  ## Layouts
25
25
 
package/README.md CHANGED
@@ -4,7 +4,7 @@ navigation: false
4
4
 
5
5
  # Nuxt Docs
6
6
 
7
- This repository contains the documentation of Nuxt hosted on <https://nuxt.com/docs>
7
+ This repository contains the documentation of Nuxt, hosted on <https://nuxt.com/docs/4.x/getting-started/introduction>
8
8
 
9
9
  ## Contributing
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",