@nuxt/docs 3.20.2 → 3.21.0

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 (188) hide show
  1. package/1.getting-started/01.introduction.md +4 -4
  2. package/1.getting-started/02.installation.md +4 -7
  3. package/1.getting-started/03.configuration.md +29 -29
  4. package/1.getting-started/04.views.md +6 -4
  5. package/1.getting-started/05.assets.md +2 -2
  6. package/1.getting-started/06.styling.md +22 -16
  7. package/1.getting-started/07.routing.md +6 -6
  8. package/1.getting-started/08.seo-meta.md +8 -4
  9. package/1.getting-started/09.transitions.md +6 -6
  10. package/1.getting-started/10.data-fetching.md +18 -18
  11. package/1.getting-started/11.state-management.md +5 -5
  12. package/1.getting-started/12.error-handling.md +25 -19
  13. package/1.getting-started/13.server.md +9 -9
  14. package/1.getting-started/14.layers.md +49 -15
  15. package/1.getting-started/15.prerendering.md +10 -4
  16. package/1.getting-started/16.deployment.md +2 -1
  17. package/1.getting-started/17.testing.md +17 -7
  18. package/1.getting-started/18.upgrade.md +111 -60
  19. package/2.directory-structure/0.output.md +1 -1
  20. package/2.directory-structure/1.assets.md +1 -1
  21. package/2.directory-structure/1.components.md +12 -8
  22. package/2.directory-structure/1.composables.md +2 -2
  23. package/2.directory-structure/1.content.md +1 -1
  24. package/2.directory-structure/1.layers.md +87 -0
  25. package/2.directory-structure/1.layouts.md +35 -3
  26. package/2.directory-structure/1.middleware.md +7 -7
  27. package/2.directory-structure/1.modules.md +8 -2
  28. package/2.directory-structure/1.node_modules.md +1 -1
  29. package/2.directory-structure/1.pages.md +39 -18
  30. package/2.directory-structure/1.plugins.md +4 -1
  31. package/2.directory-structure/1.public.md +1 -1
  32. package/2.directory-structure/1.server.md +28 -8
  33. package/2.directory-structure/1.shared.md +3 -3
  34. package/2.directory-structure/1.utils.md +2 -2
  35. package/2.directory-structure/2.env.md +3 -3
  36. package/2.directory-structure/2.nuxtignore.md +1 -0
  37. package/2.directory-structure/2.nuxtrc.md +5 -2
  38. package/2.directory-structure/3.app-config.md +2 -2
  39. package/2.directory-structure/3.app.md +3 -3
  40. package/2.directory-structure/3.error.md +9 -5
  41. package/2.directory-structure/3.nuxt-config.md +1 -1
  42. package/2.directory-structure/3.package.md +1 -1
  43. package/2.directory-structure/3.tsconfig.md +3 -2
  44. package/2.directory-structure/index.md +12 -8
  45. package/3.guide/0.index.md +8 -2
  46. package/3.guide/1.concepts/{3.rendering.md → 1.rendering.md} +7 -32
  47. package/3.guide/1.concepts/{2.vuejs-development.md → 10.vuejs-development.md} +9 -8
  48. package/3.guide/1.concepts/{10.nuxt-lifecycle.md → 2.nuxt-lifecycle.md} +31 -24
  49. package/3.guide/1.concepts/{1.auto-imports.md → 3.auto-imports.md} +6 -6
  50. package/3.guide/1.concepts/4.server-engine.md +2 -2
  51. package/3.guide/1.concepts/5.modules.md +14 -1
  52. package/3.guide/1.concepts/7.esm.md +5 -4
  53. package/3.guide/1.concepts/8.typescript.md +9 -15
  54. package/3.guide/1.concepts/9.code-style.md +1 -1
  55. package/3.guide/2.best-practices/hydration.md +1 -1
  56. package/3.guide/2.best-practices/performance.md +5 -5
  57. package/3.guide/3.ai/.navigation.yml +3 -0
  58. package/3.guide/3.ai/1.mcp.md +277 -0
  59. package/3.guide/3.ai/2.llms-txt.md +65 -0
  60. package/3.guide/4.modules/.navigation.yml +3 -0
  61. package/3.guide/4.modules/1.getting-started.md +103 -0
  62. package/3.guide/4.modules/2.module-anatomy.md +138 -0
  63. package/3.guide/4.modules/3.recipes-basics.md +330 -0
  64. package/3.guide/4.modules/4.recipes-advanced.md +243 -0
  65. package/3.guide/4.modules/5.testing.md +76 -0
  66. package/3.guide/4.modules/6.best-practices.md +104 -0
  67. package/3.guide/4.modules/7.ecosystem.md +32 -0
  68. package/3.guide/4.modules/index.md +36 -0
  69. package/3.guide/{3.recipes → 5.recipes}/1.custom-routing.md +3 -3
  70. package/3.guide/{3.recipes → 5.recipes}/2.vite-plugin.md +4 -0
  71. package/3.guide/{3.recipes → 5.recipes}/3.custom-usefetch.md +2 -2
  72. package/3.guide/{3.recipes → 5.recipes}/4.sessions-and-authentication.md +2 -2
  73. package/3.guide/{4.going-further → 6.going-further}/1.events.md +3 -4
  74. package/3.guide/{4.going-further → 6.going-further}/1.experimental-features.md +211 -86
  75. package/3.guide/6.going-further/1.features.md +108 -0
  76. package/3.guide/{4.going-further → 6.going-further}/1.internals.md +4 -3
  77. package/3.guide/{4.going-further → 6.going-further}/10.runtime-config.md +2 -2
  78. package/3.guide/{4.going-further → 6.going-further}/11.nightly-release-channel.md +1 -1
  79. package/3.guide/{4.going-further → 6.going-further}/2.hooks.md +5 -5
  80. package/3.guide/{4.going-further → 6.going-further}/4.kit.md +3 -3
  81. package/3.guide/{4.going-further → 6.going-further}/6.nuxt-app.md +6 -6
  82. package/3.guide/{4.going-further → 6.going-further}/7.layers.md +31 -5
  83. package/3.guide/{4.going-further → 6.going-further}/9.debugging.md +3 -2
  84. package/4.api/1.components/1.nuxt-client-fallback.md +5 -1
  85. package/4.api/1.components/10.nuxt-picture.md +1 -1
  86. package/4.api/1.components/11.teleports.md +2 -2
  87. package/4.api/1.components/12.nuxt-route-announcer.md +0 -2
  88. package/4.api/1.components/13.nuxt-time.md +0 -2
  89. package/4.api/1.components/2.nuxt-page.md +3 -3
  90. package/4.api/1.components/3.nuxt-layout.md +6 -6
  91. package/4.api/1.components/4.nuxt-link.md +13 -13
  92. package/4.api/1.components/5.nuxt-loading-indicator.md +1 -1
  93. package/4.api/1.components/6.nuxt-error-boundary.md +2 -2
  94. package/4.api/1.components/7.nuxt-welcome.md +2 -2
  95. package/4.api/1.components/8.nuxt-island.md +9 -2
  96. package/4.api/2.composables/use-app-config.md +1 -1
  97. package/4.api/2.composables/use-async-data.md +5 -5
  98. package/4.api/2.composables/use-cookie.md +16 -16
  99. package/4.api/2.composables/use-error.md +3 -3
  100. package/4.api/2.composables/use-fetch.md +37 -37
  101. package/4.api/2.composables/use-head-safe.md +1 -1
  102. package/4.api/2.composables/use-head.md +22 -7
  103. package/4.api/2.composables/use-lazy-async-data.md +1 -1
  104. package/4.api/2.composables/use-lazy-fetch.md +9 -9
  105. package/4.api/2.composables/use-nuxt-app.md +9 -7
  106. package/4.api/2.composables/use-route-announcer.md +0 -2
  107. package/4.api/2.composables/use-route.md +2 -2
  108. package/4.api/2.composables/use-router.md +15 -15
  109. package/4.api/2.composables/use-runtime-config.md +5 -5
  110. package/4.api/2.composables/use-seo-meta.md +2 -2
  111. package/4.api/2.composables/use-server-seo-meta.md +2 -2
  112. package/4.api/2.composables/use-state.md +12 -2
  113. package/4.api/3.utils/$fetch.md +1 -1
  114. package/4.api/3.utils/abort-navigation.md +2 -2
  115. package/4.api/3.utils/call-once.md +2 -4
  116. package/4.api/3.utils/clear-error.md +1 -1
  117. package/4.api/3.utils/create-error.md +7 -7
  118. package/4.api/3.utils/define-lazy-hydration-component.md +5 -5
  119. package/4.api/3.utils/define-nuxt-component.md +1 -1
  120. package/4.api/3.utils/define-nuxt-plugin.md +12 -12
  121. package/4.api/3.utils/define-nuxt-route-middleware.md +2 -2
  122. package/4.api/3.utils/define-page-meta.md +18 -11
  123. package/4.api/3.utils/define-route-rules.md +2 -2
  124. package/4.api/3.utils/navigate-to.md +14 -14
  125. package/4.api/3.utils/on-before-route-leave.md +1 -1
  126. package/4.api/3.utils/on-before-route-update.md +1 -1
  127. package/4.api/3.utils/preload-route-components.md +2 -2
  128. package/4.api/3.utils/refresh-cookie.md +0 -2
  129. package/4.api/3.utils/refresh-nuxt-data.md +1 -1
  130. package/4.api/3.utils/reload-nuxt-app.md +1 -1
  131. package/4.api/3.utils/set-page-layout.md +36 -0
  132. package/4.api/3.utils/set-response-status.md +3 -3
  133. package/4.api/3.utils/show-error.md +4 -4
  134. package/4.api/3.utils/update-app-config.md +1 -1
  135. package/4.api/4.commands/add.md +11 -11
  136. package/4.api/4.commands/analyze.md +11 -11
  137. package/4.api/4.commands/build-module.md +11 -11
  138. package/4.api/4.commands/build.md +12 -12
  139. package/4.api/4.commands/cleanup.md +6 -6
  140. package/4.api/4.commands/dev.md +23 -23
  141. package/4.api/4.commands/devtools.md +7 -7
  142. package/4.api/4.commands/generate.md +12 -12
  143. package/4.api/4.commands/info.md +6 -6
  144. package/4.api/4.commands/init.md +18 -18
  145. package/4.api/4.commands/module.md +18 -18
  146. package/4.api/4.commands/prepare.md +10 -10
  147. package/4.api/4.commands/preview.md +11 -11
  148. package/4.api/4.commands/test.md +9 -9
  149. package/4.api/4.commands/typecheck.md +10 -10
  150. package/4.api/4.commands/upgrade.md +10 -10
  151. package/4.api/5.kit/1.modules.md +31 -18
  152. package/4.api/5.kit/10.templates.md +23 -23
  153. package/4.api/5.kit/11.nitro.md +36 -36
  154. package/4.api/5.kit/12.resolving.md +2 -2
  155. package/4.api/5.kit/14.builder.md +35 -23
  156. package/4.api/5.kit/16.layers.md +16 -16
  157. package/4.api/5.kit/2.programmatic.md +2 -2
  158. package/4.api/5.kit/3.compatibility.md +2 -2
  159. package/4.api/5.kit/4.autoimports.md +18 -18
  160. package/4.api/5.kit/5.components.md +35 -35
  161. package/4.api/5.kit/6.context.md +1 -1
  162. package/4.api/5.kit/8.layout.md +1 -1
  163. package/4.api/6.advanced/1.hooks.md +85 -85
  164. package/4.api/index.md +7 -7
  165. package/5.community/4.contribution.md +10 -10
  166. package/5.community/5.framework-contribution.md +9 -9
  167. package/5.community/6.roadmap.md +25 -25
  168. package/5.community/7.changelog.md +10 -0
  169. package/6.bridge/1.overview.md +8 -0
  170. package/6.bridge/3.bridge-composition-api.md +2 -2
  171. package/6.bridge/4.plugins-and-middleware.md +2 -2
  172. package/6.bridge/5.nuxt3-compatible-api.md +1 -1
  173. package/6.bridge/8.nitro.md +4 -0
  174. package/7.migration/10.bundling.md +1 -1
  175. package/7.migration/11.server.md +3 -3
  176. package/7.migration/2.configuration.md +5 -5
  177. package/7.migration/20.module-authors.md +3 -3
  178. package/7.migration/4.meta.md +1 -1
  179. package/7.migration/5.plugins-and-middleware.md +3 -3
  180. package/7.migration/6.pages-and-layouts.md +5 -5
  181. package/7.migration/7.component-options.md +6 -6
  182. package/7.migration/8.runtime-config.md +1 -1
  183. package/package.json +1 -1
  184. package/3.guide/4.going-further/1.features.md +0 -103
  185. package/3.guide/4.going-further/3.modules.md +0 -901
  186. /package/3.guide/{3.recipes → 5.recipes}/.navigation.yml +0 -0
  187. /package/3.guide/{4.going-further → 6.going-further}/.navigation.yml +0 -0
  188. /package/3.guide/{4.going-further → 6.going-further}/index.md +0 -0
@@ -46,28 +46,28 @@ function addComponentsDir (dir: ComponentsDir, opts: { prepend?: boolean } = {})
46
46
 
47
47
  `dir` An object with the following properties:
48
48
 
49
- | Property | Type | Required | Description |
50
- | ------------------ | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
51
- | `path` | `string` | `true` | Path (absolute or relative) to the directory containing your components. You can use Nuxt aliases (~ or @) to refer to directories inside project or directly use an npm package path similar to require. |
52
- | `pattern` | `string \| string[]`{lang="ts"} | `false` | Accept Pattern that will be run against specified path. |
53
- | `ignore` | `string[]` | `false` | Ignore patterns that will be run against specified path. |
54
- | `prefix` | `string` | `false` | Prefix all matched components with this string. |
55
- | `pathPrefix` | `boolean` | `false` | Prefix component name by its path. |
56
- | `prefetch` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
57
- | `preload` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
58
- | `isAsync` | `boolean` | `false` | This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not. |
59
- | `extendComponent` | `(component: Component) => Promise<Component \| void> \| (Component \| void)`{lang="ts"} | `false` | A function that will be called for each component found in the directory. It accepts a component object and should return a component object or a promise that resolves to a component object. |
60
- | `global` | `boolean` | `false` | If enabled, registers components to be globally available. |
61
- | `island` | `boolean` | `false` | If enabled, registers components as islands. You can read more about islands in [`<NuxtIsland/>`](/docs/3.x/api/components/nuxt-island#nuxtisland) component description. |
62
- | `watch` | `boolean` | `false` | Watch specified path for changes, including file additions and file deletions. |
63
- | `extensions` | `string[]` | `false` | Extensions supported by Nuxt builder. |
64
- | `transpile` | `'auto' \| boolean`{lang="ts"} | `false` | Transpile specified path using build.transpile. If set to `'auto'`, it will set `transpile: true` if `node_modules/` is in path. |
49
+ | Property | Type | Required | Description |
50
+ |-------------------|------------------------------------------------------------------------------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
+ | `path` | `string` | `true` | Path (absolute or relative) to the directory containing your components. You can use Nuxt aliases (~ or @) to refer to directories inside project or directly use an npm package path similar to require. |
52
+ | `pattern` | `string \| string[]`{lang="ts"} | `false` | Accept Pattern that will be run against specified path. |
53
+ | `ignore` | `string[]` | `false` | Ignore patterns that will be run against specified path. |
54
+ | `prefix` | `string` | `false` | Prefix all matched components with this string. |
55
+ | `pathPrefix` | `boolean` | `false` | Prefix component name by its path. |
56
+ | `prefetch` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
57
+ | `preload` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
58
+ | `isAsync` | `boolean` | `false` | This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not. |
59
+ | `extendComponent` | `(component: Component) => Promise<Component \| void> \| (Component \| void)`{lang="ts"} | `false` | A function that will be called for each component found in the directory. It accepts a component object and should return a component object or a promise that resolves to a component object. |
60
+ | `global` | `boolean` | `false` | If enabled, registers components to be globally available. |
61
+ | `island` | `boolean` | `false` | If enabled, registers components as islands. You can read more about islands in [`<NuxtIsland/>`](/docs/3.x/api/components/nuxt-island) component description. |
62
+ | `watch` | `boolean` | `false` | Watch specified path for changes, including file additions and file deletions. |
63
+ | `extensions` | `string[]` | `false` | Extensions supported by Nuxt builder. |
64
+ | `transpile` | `'auto' \| boolean`{lang="ts"} | `false` | Transpile specified path using build.transpile. If set to `'auto'`, it will set `transpile: true` if `node_modules/` is in path. |
65
65
 
66
66
  `opts`
67
67
 
68
- | Property | Type | Required | Description |
69
- | ------------------ | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
70
- | `prepend` | `boolean` | `false` | If set to `true`, the directory will be prepended to the array with `unshift()` instead of `push()`. |
68
+ | Property | Type | Required | Description |
69
+ |-----------|-----------|----------|------------------------------------------------------------------------------------------------------|
70
+ | `prepend` | `boolean` | `false` | If set to `true`, the directory will be prepended to the array with `unshift()` instead of `push()`. |
71
71
 
72
72
  ## `addComponent`
73
73
 
@@ -109,22 +109,22 @@ function addComponent (options: AddComponentOptions): void
109
109
 
110
110
  `options`: An object with the following properties:
111
111
 
112
- | Property | Type | Required | Description |
113
- | ------------------ | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
114
- | `name` | `string` | `true` | Component name. |
115
- | `filePath` | `string` | `true` | Path to the component. |
116
- | `declarationPath` | `string` | `false` | Path to component's declaration file. It is used to generate components' [type templates](/docs/3.x/api/kit/templates#addtypetemplate); if not provided, `filePath` is used instead. |
117
- | `pascalName` | `string` | `false` | Pascal case component name. If not provided, it will be generated from the component name. |
118
- | `kebabName` | `string` | `false` | Kebab case component name. If not provided, it will be generated from the component name. |
119
- | `export` | `string` | `false` | Specify named or default export. If not provided, it will be set to `'default'`. |
120
- | `shortPath` | `string` | `false` | Short path to the component. If not provided, it will be generated from the component path. |
121
- | `chunkName` | `string` | `false` | Chunk name for the component. If not provided, it will be generated from the component name. |
122
- | `prefetch` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
123
- | `preload` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
124
- | `global` | `boolean` | `false` | If enabled, registers component to be globally available. |
125
- | `island` | `boolean` | `false` | If enabled, registers component as island. You can read more about islands in [`<NuxtIsland/>`](/docs/3.x/api/components/nuxt-island#nuxtisland) component description. |
126
- | `mode` | `'client' \| 'server' \| 'all'`{lang="ts"} | `false` | This options indicates if component should render on client, server or both. By default, it will render on both client and server. |
127
- | `priority` | `number` | `false` | Priority of the component, if multiple components have the same name, the one with the highest priority will be used. |
112
+ | Property | Type | Required | Description |
113
+ |-------------------|--------------------------------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
114
+ | `name` | `string` | `true` | Component name. |
115
+ | `filePath` | `string` | `true` | Path to the component. |
116
+ | `declarationPath` | `string` | `false` | Path to component's declaration file. It is used to generate components' [type templates](/docs/3.x/api/kit/templates#addtypetemplate); if not provided, `filePath` is used instead. |
117
+ | `pascalName` | `string` | `false` | Pascal case component name. If not provided, it will be generated from the component name. |
118
+ | `kebabName` | `string` | `false` | Kebab case component name. If not provided, it will be generated from the component name. |
119
+ | `export` | `string` | `false` | Specify named or default export. If not provided, it will be set to `'default'`. |
120
+ | `shortPath` | `string` | `false` | Short path to the component. If not provided, it will be generated from the component path. |
121
+ | `chunkName` | `string` | `false` | Chunk name for the component. If not provided, it will be generated from the component name. |
122
+ | `prefetch` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
123
+ | `preload` | `boolean` | `false` | These properties (prefetch/preload) are used in production to configure how components with Lazy prefix are handled by webpack via its magic comments. Learn more on [webpack documentation](https://webpack.js.org/api/module-methods/#magic-comments) |
124
+ | `global` | `boolean` | `false` | If enabled, registers component to be globally available. |
125
+ | `island` | `boolean` | `false` | If enabled, registers component as island. You can read more about islands in [`<NuxtIsland/>`](/docs/3.x/api/components/nuxt-island) component description. |
126
+ | `mode` | `'client' \| 'server' \| 'all'`{lang="ts"} | `false` | This options indicates if component should render on client, server or both. By default, it will render on both client and server. |
127
+ | `priority` | `number` | `false` | Priority of the component, if multiple components have the same name, the one with the highest priority will be used. |
128
128
 
129
129
  ### Examples
130
130
 
@@ -128,7 +128,7 @@ The Nuxt instance as described in the `useNuxt` section.
128
128
  ::code-group
129
129
 
130
130
  ```ts twoslash [requireSiteConfig.ts]
131
- declare module '@nuxt/schema' {
131
+ declare module 'nuxt/schema' {
132
132
  interface NuxtOptions {
133
133
  siteConfig: SiteConfig
134
134
  }
@@ -15,7 +15,7 @@ Layouts is used to be a wrapper around your pages. It can be used to wrap your p
15
15
  Register template as layout and add it to the layouts.
16
16
 
17
17
  ::note
18
- In Nuxt 2 `error` layout can also be registered using this utility. In Nuxt 3+ `error` layout [replaced](/docs/3.x/getting-started/error-handling#rendering-an-error-page) with `error.vue` page in project root.
18
+ In Nuxt 2 `error` layout can also be registered using this utility. In Nuxt 3+ `error` layout [replaced](/docs/3.x/getting-started/error-handling#error-page) with `error.vue` page in project root.
19
19
  ::
20
20
 
21
21
  ### Usage
@@ -3,103 +3,103 @@ title: 'Lifecycle Hooks'
3
3
  description: Nuxt provides a powerful hooking system to expand almost every aspect using hooks.
4
4
  ---
5
5
 
6
- :read-more{to="/docs/guide/going-further/hooks"}
6
+ :read-more{to="/docs/3.x/guide/going-further/hooks"}
7
7
 
8
8
  ## App Hooks (runtime)
9
9
 
10
10
  Check the [app source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts#L37) for all available hooks.
11
11
 
12
- Hook | Arguments | Environment | Description
13
- -----------------------|---------------------|-----------------|-------------
14
- `app:created` | `vueApp` | Server & Client | Called when initial `vueApp` instance is created.
15
- `app:error` | `err` | Server & Client | Called when a fatal error occurs.
16
- `app:error:cleared` | `{ redirect? }` | Server & Client | Called when a fatal error occurs.
17
- `vue:setup` | - | Server & Client | Called when the setup of Nuxt root is initialized. This callback must be synchronous.
18
- `vue:error` | `err, target, info` | Server & Client | Called when a vue error propagates to the root component. [Learn More](https://vuejs.org/api/composition-api-lifecycle.html#onerrorcaptured).
19
- `app:rendered` | `renderContext` | Server | Called when SSR rendering is done.
20
- `app:redirected` | - | Server | Called before SSR redirection.
21
- `app:beforeMount` | `vueApp` | Client | Called before mounting the app, called only on client side.
22
- `app:mounted` | `vueApp` | Client | Called when Vue app is initialized and mounted in browser.
23
- `app:suspense:resolve` | `appComponent` | Client | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) resolved event.
24
- `app:manifest:update` | `{ id, timestamp }` | Client | Called when there is a newer version of your app detected.
25
- `app:data:refresh` | `keys?` | Client | Called when `refreshNuxtData` is called.
26
- `link:prefetch` | `to` | Client | Called when a `<NuxtLink>` is observed to be prefetched.
27
- `page:start` | `pageComponent?` | Client | Called on [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) inside of `NuxtPage` pending event.
28
- `page:finish` | `pageComponent?` | Client | Called on [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) inside of `NuxtPage` resolved event.
29
- `page:loading:start` | - | Client | Called when the `setup()` of the new page is running.
30
- `page:loading:end` | - | Client | Called after `page:finish`
31
- `page:transition:finish`| `pageComponent?` | Client | After page transition [onAfterLeave](https://vuejs.org/guide/built-ins/transition.html#javascript-hooks) event.
32
- `dev:ssr-logs` | `logs` | Client | Called with an array of server-side logs that have been passed to the client (if `features.devLogs` is enabled).
33
- `page:view-transition:start` | `transition` | Client | Called after `document.startViewTransition` is called when [experimental viewTransition support is enabled](/docs/3.x/getting-started/transitions#view-transitions-api-experimental).
12
+ | Hook | Arguments | Environment | Description |
13
+ |------------------------------|---------------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
14
+ | `app:created` | `vueApp` | Server & Client | Called when initial `vueApp` instance is created. |
15
+ | `app:error` | `err` | Server & Client | Called when a fatal error occurs. |
16
+ | `app:error:cleared` | `{ redirect? }` | Server & Client | Called when a fatal error occurs. |
17
+ | `vue:setup` | - | Server & Client | Called when the setup of Nuxt root is initialized. This callback must be synchronous. |
18
+ | `vue:error` | `err, target, info` | Server & Client | Called when a vue error propagates to the root component. [Learn More](https://vuejs.org/api/composition-api-lifecycle#onerrorcaptured). |
19
+ | `app:rendered` | `renderContext` | Server | Called when SSR rendering is done. |
20
+ | `app:redirected` | - | Server | Called before SSR redirection. |
21
+ | `app:beforeMount` | `vueApp` | Client | Called before mounting the app, called only on client side. |
22
+ | `app:mounted` | `vueApp` | Client | Called when Vue app is initialized and mounted in browser. |
23
+ | `app:suspense:resolve` | `appComponent` | Client | On [Suspense](https://vuejs.org/guide/built-ins/suspense#suspense) resolved event. |
24
+ | `app:manifest:update` | `{ id, timestamp }` | Client | Called when there is a newer version of your app detected. |
25
+ | `app:data:refresh` | `keys?` | Client | Called when `refreshNuxtData` is called. |
26
+ | `link:prefetch` | `to` | Client | Called when a `<NuxtLink>` is observed to be prefetched. |
27
+ | `page:start` | `pageComponent?` | Client | Called on [Suspense](https://vuejs.org/guide/built-ins/suspense#suspense) inside of `NuxtPage` pending event. |
28
+ | `page:finish` | `pageComponent?` | Client | Called on [Suspense](https://vuejs.org/guide/built-ins/suspense#suspense) inside of `NuxtPage` resolved event. |
29
+ | `page:loading:start` | - | Client | Called when the `setup()` of the new page is running. |
30
+ | `page:loading:end` | - | Client | Called after `page:finish` |
31
+ | `page:transition:finish` | `pageComponent?` | Client | After page transition [onAfterLeave](https://vuejs.org/guide/built-ins/transition#javascript-hooks) event. |
32
+ | `dev:ssr-logs` | `logs` | Client | Called with an array of server-side logs that have been passed to the client (if `features.devLogs` is enabled). |
33
+ | `page:view-transition:start` | `transition` | Client | Called after `document.startViewTransition` is called when [experimental viewTransition support is enabled](/docs/3.x/getting-started/transitions#view-transitions-api-experimental). |
34
34
 
35
35
  ## Nuxt Hooks (build time)
36
36
 
37
37
  Check the [schema source code](https://github.com/nuxt/nuxt/blob/main/packages/schema/src/types/hooks.ts#L83) for all available hooks.
38
38
 
39
- Hook | Arguments | Description
40
- -------------------------|----------------------------|-------------
41
- `kit:compatibility` | `compatibility, issues` | Allows extending compatibility checks.
42
- `ready` | `nuxt` | Called after Nuxt initialization, when the Nuxt instance is ready to work.
43
- `close` | `nuxt` | Called when Nuxt instance is gracefully closing.
44
- `restart` | `{ hard?: boolean }` | To be called to restart the current Nuxt instance.
45
- `modules:before` | - | Called during Nuxt initialization, before installing user modules.
46
- `modules:done` | - | Called during Nuxt initialization, after installing user modules.
47
- `app:resolve` | `app` | Called after resolving the `app` instance.
48
- `app:templates` | `app` | Called during `NuxtApp` generation, to allow customizing, modifying or adding new files to the build directory (either virtually or to written to `.nuxt`).
49
- `app:templatesGenerated` | `app` | Called after templates are compiled into the [virtual file system](/docs/3.x/directory-structure/nuxt#virtual-file-system) (vfs).
50
- `build:before` | - | Called before Nuxt bundle builder.
51
- `build:done` | - | Called after Nuxt bundle builder is complete.
52
- `build:manifest` | `manifest` | Called during the manifest build by Vite and webpack. This allows customizing the manifest that Nitro will use to render `<script>` and `<link>` tags in the final HTML.
53
- `builder:generateApp` | `options` | Called before generating the app.
54
- `builder:watch` | `event, path` | Called at build time in development when the watcher spots a change to a file or directory in the project.
55
- `pages:extend` | `pages` | Called after page routes are scanned from the file system.
56
- `pages:resolved` | `pages` | Called after page routes have been augmented with scanned metadata.
57
- `pages:routerOptions` | `{ files: Array<{ path: string, optional?: boolean }> }` | Called when resolving `router.options` files. Later items in the array override earlier ones.
58
- `server:devHandler` | `handler` | Called when the dev middleware is being registered on the Nitro dev server.
59
- `imports:sources` | `presets` | Called at setup allowing modules to extend sources.
60
- `imports:extend` | `imports` | Called at setup allowing modules to extend imports.
61
- `imports:context` | `context` | Called when the [unimport](https://github.com/unjs/unimport) context is created.
62
- `imports:dirs` | `dirs` | Allows extending import directories.
63
- `components:dirs` | `dirs` | Called within `app:resolve` allowing to extend the directories that are scanned for auto-importable components.
64
- `components:extend` | `components` | Allows extending new components.
65
- `nitro:config` | `nitroConfig` | Called before initializing Nitro, allowing customization of Nitro's configuration.
66
- `nitro:init` | `nitro` | Called after Nitro is initialized, which allows registering Nitro hooks and interacting directly with Nitro.
67
- `nitro:build:before` | `nitro` | Called before building the Nitro instance.
68
- `nitro:build:public-assets` | `nitro` | Called after copying public assets. Allows modifying public assets before Nitro server is built.
69
- `prerender:routes` | `ctx` | Allows extending the routes to be pre-rendered.
70
- `build:error` | `error` | Called when an error occurs at build time.
71
- `prepare:types` | `options` | Called before `@nuxt/cli` writes `.nuxt/tsconfig.json` and `.nuxt/nuxt.d.ts`, allowing addition of custom references and declarations in `nuxt.d.ts`, or directly modifying the options in `tsconfig.json`
72
- `listen` | `listenerServer, listener` | Called when the dev server is loading.
73
- `schema:extend` | `schemas` | Allows extending default schemas.
74
- `schema:resolved` | `schema` | Allows extending resolved schema.
75
- `schema:beforeWrite` | `schema` | Called before writing the given schema.
76
- `schema:written` | - | Called after the schema is written.
77
- `vite:extend` | `viteBuildContext` | Allows extending Vite default context.
78
- `vite:extendConfig` | `viteInlineConfig, env` | Allows extending Vite default config. **Deprecated in Nuxt 5+.** In Nuxt 5, this operates on a shared configuration rather than separate client/server configs.
79
- `vite:configResolved` | `viteInlineConfig, env` | Allows reading the resolved Vite config. **Deprecated in Nuxt 5+.** In Nuxt 5, this operates on a shared configuration rather than separate client/server configs.
80
- `vite:serverCreated` | `viteServer, env` | Called when the Vite server is created.
81
- `vite:compiled` | - | Called after Vite server is compiled.
82
- `webpack:config` | `webpackConfigs` | Called before configuring the webpack compiler.
83
- `webpack:configResolved` | `webpackConfigs` | Allows reading the resolved webpack config.
84
- `webpack:compile` | `options` | Called right before compilation.
85
- `webpack:compiled` | `options` | Called after resources are loaded.
86
- `webpack:change` | `shortPath` | Called on `change` on WebpackBar.
87
- `webpack:error` | - | Called on `done` if has errors on WebpackBar.
88
- `webpack:done` | - | Called on `allDone` on WebpackBar.
89
- `webpack:progress` | `statesArray` | Called on `progress` on WebpackBar.
39
+ | Hook | Arguments | Description |
40
+ |-----------------------------|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
41
+ | `kit:compatibility` | `compatibility, issues` | Allows extending compatibility checks. |
42
+ | `ready` | `nuxt` | Called after Nuxt initialization, when the Nuxt instance is ready to work. |
43
+ | `close` | `nuxt` | Called when Nuxt instance is gracefully closing. |
44
+ | `restart` | `{ hard?: boolean }` | To be called to restart the current Nuxt instance. |
45
+ | `modules:before` | - | Called during Nuxt initialization, before installing user modules. |
46
+ | `modules:done` | - | Called during Nuxt initialization, after installing user modules. |
47
+ | `app:resolve` | `app` | Called after resolving the `app` instance. |
48
+ | `app:templates` | `app` | Called during `NuxtApp` generation, to allow customizing, modifying or adding new files to the build directory (either virtually or to written to `.nuxt`). |
49
+ | `app:templatesGenerated` | `app` | Called after templates are compiled into the [virtual file system](/docs/3.x/directory-structure/nuxt) (vfs). |
50
+ | `build:before` | - | Called before Nuxt bundle builder. |
51
+ | `build:done` | - | Called after Nuxt bundle builder is complete. |
52
+ | `build:manifest` | `manifest` | Called during the manifest build by Vite and webpack. This allows customizing the manifest that Nitro will use to render `<script>` and `<link>` tags in the final HTML. |
53
+ | `builder:generateApp` | `options` | Called before generating the app. |
54
+ | `builder:watch` | `event, path` | Called at build time in development when the watcher spots a change to a file or directory in the project. |
55
+ | `pages:extend` | `pages` | Called after page routes are scanned from the file system. |
56
+ | `pages:resolved` | `pages` | Called after page routes have been augmented with scanned metadata. |
57
+ | `pages:routerOptions` | `{ files: Array<{ path: string, optional?: boolean }> }` | Called when resolving `router.options` files. Later items in the array override earlier ones. |
58
+ | `server:devHandler` | `handler` | Called when the dev middleware is being registered on the Nitro dev server. |
59
+ | `imports:sources` | `presets` | Called at setup allowing modules to extend sources. |
60
+ | `imports:extend` | `imports` | Called at setup allowing modules to extend imports. |
61
+ | `imports:context` | `context` | Called when the [unimport](https://github.com/unjs/unimport) context is created. |
62
+ | `imports:dirs` | `dirs` | Allows extending import directories. |
63
+ | `components:dirs` | `dirs` | Called within `app:resolve` allowing to extend the directories that are scanned for auto-importable components. |
64
+ | `components:extend` | `components` | Allows extending new components. |
65
+ | `nitro:config` | `nitroConfig` | Called before initializing Nitro, allowing customization of Nitro's configuration. |
66
+ | `nitro:init` | `nitro` | Called after Nitro is initialized, which allows registering Nitro hooks and interacting directly with Nitro. |
67
+ | `nitro:build:before` | `nitro` | Called before building the Nitro instance. |
68
+ | `nitro:build:public-assets` | `nitro` | Called after copying public assets. Allows modifying public assets before Nitro server is built. |
69
+ | `prerender:routes` | `ctx` | Allows extending the routes to be pre-rendered. |
70
+ | `build:error` | `error` | Called when an error occurs at build time. |
71
+ | `prepare:types` | `options` | Called before `@nuxt/cli` writes TypeScript configuration files (`.nuxt/tsconfig.app.json`, `.nuxt/tsconfig.server.json`, etc.) and `.nuxt/nuxt.d.ts`, allowing addition of custom references and declarations in `nuxt.d.ts`, or directly modifying the options in generated configurations |
72
+ | `listen` | `listenerServer, listener` | Called when the dev server is loading. |
73
+ | `schema:extend` | `schemas` | Allows extending default schemas. |
74
+ | `schema:resolved` | `schema` | Allows extending resolved schema. |
75
+ | `schema:beforeWrite` | `schema` | Called before writing the given schema. |
76
+ | `schema:written` | - | Called after the schema is written. |
77
+ | `vite:extend` | `viteBuildContext` | Allows extending Vite default context. |
78
+ | `vite:extendConfig` | `viteInlineConfig, env` | Allows extending Vite default config. **Deprecated in Nuxt 5+.** In Nuxt 5, this operates on a shared configuration rather than separate client/server configs. |
79
+ | `vite:configResolved` | `viteInlineConfig, env` | Allows reading the resolved Vite config. **Deprecated in Nuxt 5+.** In Nuxt 5, this operates on a shared configuration rather than separate client/server configs. |
80
+ | `vite:serverCreated` | `viteServer, env` | Called when the Vite server is created. |
81
+ | `vite:compiled` | - | Called after Vite server is compiled. |
82
+ | `webpack:config` | `webpackConfigs` | Called before configuring the webpack compiler. |
83
+ | `webpack:configResolved` | `webpackConfigs` | Allows reading the resolved webpack config. |
84
+ | `webpack:compile` | `options` | Called right before compilation. |
85
+ | `webpack:compiled` | `options` | Called after resources are loaded. |
86
+ | `webpack:change` | `shortPath` | Called on `change` on WebpackBar. |
87
+ | `webpack:error` | - | Called on `done` if has errors on WebpackBar. |
88
+ | `webpack:done` | - | Called on `allDone` on WebpackBar. |
89
+ | `webpack:progress` | `statesArray` | Called on `progress` on WebpackBar. |
90
90
 
91
91
  ## Nitro App Hooks (runtime, server-side)
92
92
 
93
93
  See [Nitro](https://nitro.build/guide/plugins#available-hooks) for all available hooks.
94
94
 
95
- Hook | Arguments | Description | Types
96
- -----------------------|-----------------------|--------------------------------------|------------------
97
- `dev:ssr-logs` | `{ path, logs }` | Server | Called at the end of a request cycle with an array of server-side logs.
98
- `render:response` | `response, { event }` | Called before sending the response. | [response](https://github.com/nuxt/nuxt/blob/71ef8bd3ff207fd51c2ca18d5a8c7140476780c7/packages/nuxt/src/core/runtime/nitro/renderer.ts#L24), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38)
99
- `render:html` | `html, { event }` | Called before constructing the HTML. | [html](https://github.com/nuxt/nuxt/blob/71ef8bd3ff207fd51c2ca18d5a8c7140476780c7/packages/nuxt/src/core/runtime/nitro/renderer.ts#L15), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38)
100
- `render:island` | `islandResponse, { event, islandContext }` | Called before constructing the island HTML. | [islandResponse](https://github.com/nuxt/nuxt/blob/e50cabfed1984c341af0d0c056a325a8aec26980/packages/nuxt/src/core/runtime/nitro/renderer.ts#L28), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), [islandContext](https://github.com/nuxt/nuxt/blob/e50cabfed1984c341af0d0c056a325a8aec26980/packages/nuxt/src/core/runtime/nitro/renderer.ts#L38)
101
- `close` | - | Called when Nitro is closed. | -
102
- `error` | `error, { event? }` | Called when an error occurs. | [error](https://github.com/nitrojs/nitro/blob/d20ffcbd16fc4003b774445e1a01e698c2bb078a/src/types/runtime/nitro.ts#L48), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38)
103
- `request` | `event` | Called when a request is received. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38)
104
- `beforeResponse` | `event, { body }` | Called before sending the response. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), unknown
105
- `afterResponse` | `event, { body }` | Called after sending the response. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), unknown
95
+ | Hook | Arguments | Description | Types |
96
+ |-------------------|--------------------------------------------|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
97
+ | `dev:ssr-logs` | `{ path, logs }` | Server | Called at the end of a request cycle with an array of server-side logs. |
98
+ | `render:response` | `response, { event }` | Called before sending the response. | [response](https://github.com/nuxt/nuxt/blob/71ef8bd3ff207fd51c2ca18d5a8c7140476780c7/packages/nuxt/src/core/runtime/nitro/renderer.ts#L24), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38) |
99
+ | `render:html` | `html, { event }` | Called before constructing the HTML. | [html](https://github.com/nuxt/nuxt/blob/71ef8bd3ff207fd51c2ca18d5a8c7140476780c7/packages/nuxt/src/core/runtime/nitro/renderer.ts#L15), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38) |
100
+ | `render:island` | `islandResponse, { event, islandContext }` | Called before constructing the island HTML. | [islandResponse](https://github.com/nuxt/nuxt/blob/e50cabfed1984c341af0d0c056a325a8aec26980/packages/nuxt/src/core/runtime/nitro/renderer.ts#L28), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), [islandContext](https://github.com/nuxt/nuxt/blob/e50cabfed1984c341af0d0c056a325a8aec26980/packages/nuxt/src/core/runtime/nitro/renderer.ts#L38) |
101
+ | `close` | - | Called when Nitro is closed. | - |
102
+ | `error` | `error, { event? }` | Called when an error occurs. | [error](https://github.com/nitrojs/nitro/blob/d20ffcbd16fc4003b774445e1a01e698c2bb078a/src/types/runtime/nitro.ts#L48), [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38) |
103
+ | `request` | `event` | Called when a request is received. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38) |
104
+ | `beforeResponse` | `event, { body }` | Called before sending the response. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), unknown |
105
+ | `afterResponse` | `event, { body }` | Called after sending the response. | [event](https://github.com/h3js/h3/blob/f6ceb5581043dc4d8b6eab91e9be4531e0c30f8e/src/types.ts#L38), unknown |
package/4.api/index.md CHANGED
@@ -7,25 +7,25 @@ surround: false
7
7
  ---
8
8
 
9
9
  ::card-group
10
- ::card{icon="i-lucide-box" title="Components" to="/docs/api/components/client-only"}
10
+ ::card{icon="i-lucide-box" title="Components" to="/docs/3.x/api/components/client-only"}
11
11
  Explore Nuxt built-in components for pages, layouts, head, and more.
12
12
  ::
13
- ::card{icon="i-lucide-arrow-left-right" title="Composables" to="/docs/api/composables/use-app-config"}
13
+ ::card{icon="i-lucide-arrow-left-right" title="Composables" to="/docs/3.x/api/composables/use-app-config"}
14
14
  Discover Nuxt composable functions for data-fetching, head management and more.
15
15
  ::
16
- ::card{icon="i-lucide-square-function" title="Utils" to="/docs/api/utils/dollarfetch"}
16
+ ::card{icon="i-lucide-square-function" title="Utils" to="/docs/3.x/api/utils/dollarfetch"}
17
17
  Learn about Nuxt utility functions for navigation, error handling and more.
18
18
  ::
19
- ::card{icon="i-lucide-square-terminal" title="Commands" to="/docs/api/commands/add"}
19
+ ::card{icon="i-lucide-square-terminal" title="Commands" to="/docs/3.x/api/commands/add"}
20
20
  List of Nuxt CLI commands to init, analyze, build, and preview your application.
21
21
  ::
22
- ::card{icon="i-lucide-package" title="Nuxt Kit" to="/docs/api/kit/modules"}
22
+ ::card{icon="i-lucide-package" title="Nuxt Kit" to="/docs/3.x/api/kit/modules"}
23
23
  Understand Nuxt Kit utilities to create modules and control Nuxt.
24
24
  ::
25
- ::card{icon="i-lucide-brain" title="Advanced" to="/docs/api/advanced/hooks"}
25
+ ::card{icon="i-lucide-brain" title="Advanced" to="/docs/3.x/api/advanced/hooks"}
26
26
  Go deep in Nuxt internals with Nuxt lifecycle hooks.
27
27
  ::
28
- ::card{icon="i-lucide-cog" title="Nuxt Configuration" to="/docs/api/nuxt-config"}
28
+ ::card{icon="i-lucide-cog" title="Nuxt Configuration" to="/docs/3.x/api/nuxt-config"}
29
29
  Explore all Nuxt configuration options to customize your application.
30
30
  ::
31
31
  ::
@@ -11,7 +11,7 @@ There is a range of different ways you might be able to contribute to the Nuxt e
11
11
  The Nuxt ecosystem includes many different projects and organizations:
12
12
 
13
13
  * [nuxt/](https://github.com/nuxt) - core repositories for the Nuxt framework itself. [**nuxt/nuxt**](https://github.com/nuxt/nuxt) contains the Nuxt framework (both versions 2 and 3).
14
- * [nuxt-modules/](https://github.com/nuxt-modules) - community-contributed and maintained modules and libraries. There is a [process to migrate a module](/docs/3.x/guide/going-further/modules/#joining-nuxt-modules-and-nuxtjs) to `nuxt-modules`. While these modules have individual maintainers, they are not dependent on a single person.
14
+ * [nuxt-modules/](https://github.com/nuxt-modules) - community-contributed and maintained modules and libraries. There is a [process to migrate a module](/docs/3.x/guide/modules/ecosystem) to `nuxt-modules`. While these modules have individual maintainers, they are not dependent on a single person.
15
15
  * [unjs/](https://github.com/unjs) - many of these libraries are used throughout the Nuxt ecosystem. They are designed to be universal libraries that are framework- and environment-agnostic. We welcome contributions and usage by other frameworks and projects.
16
16
 
17
17
  ## How To Contribute
@@ -42,7 +42,7 @@ If you're working on a feature, then we ask that you **open a feature request is
42
42
 
43
43
  For typo fixes, it's recommended to batch multiple typo fixes into one pull request to maintain a cleaner commit history.
44
44
 
45
- For bigger changes to Nuxt itself, we recommend that you first [create a Nuxt module](#create-a-module) and implement the feature there. This allows for quick proof-of-concept. You can then [create an RFC](#make-an-rfc) in the form of a discussion. As users adopt it and you gather feedback, it can then be refined and either added to Nuxt core or continue as a standalone module.
45
+ For bigger changes to Nuxt itself, we recommend that you first [create a Nuxt module](/docs/3.x/community/contribution#create-a-module) and implement the feature there. This allows for quick proof-of-concept. You can then [create an RFC](/docs/3.x/community/contribution#make-an-rfc) in the form of a discussion. As users adopt it and you gather feedback, it can then be refined and either added to Nuxt core or continue as a standalone module.
46
46
 
47
47
  #### Commit Conventions
48
48
 
@@ -58,7 +58,7 @@ If you are working in a project with a monorepo, like `nuxt/nuxt`, ensure that y
58
58
 
59
59
  If you don't know how to send a pull request, we recommend reading [the guide](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).
60
60
 
61
- When sending a pull request, make sure your PR's title also follows the [Commit Convention](#commit-conventions).
61
+ When sending a pull request, make sure your PR's title also follows the [Commit Convention](/docs/3.x/community/contribution#commit-conventions).
62
62
 
63
63
  If your PR fixes or resolves existing issues, please make sure you mention them in the PR description.
64
64
 
@@ -100,13 +100,13 @@ Our aim is ensuring quality and maintaining the joy of collaborating and communi
100
100
 
101
101
  ### Create a Module
102
102
 
103
- If you've built something with Nuxt that's cool, why not [extract it into a module](/docs/3.x/guide/going-further/modules), so it can be shared with others? We have [many excellent modules already](/modules), but there's always room for more.
103
+ If you've built something with Nuxt that's cool, why not [extract it into a module](/docs/3.x/guide/modules), so it can be shared with others? We have [many excellent modules already](/modules), but there's always room for more.
104
104
 
105
105
  If you need help while building it, feel free to [check in with us](/docs/3.x/community/getting-help).
106
106
 
107
107
  ### Make an RFC
108
108
 
109
- We highly recommend [creating a module](#create-a-module) first to test out big new features and gain community adoption.
109
+ We highly recommend [creating a module](/docs/3.x/community/contribution#create-a-module) first to test out big new features and gain community adoption.
110
110
 
111
111
  If you have done this already, or it's not appropriate to create a new module, then please start by creating a new discussion. Make sure it explains your thinking as clearly as possible. Include code examples or function signatures for new APIs. Reference existing issues or pain points with examples.
112
112
 
@@ -126,7 +126,7 @@ The following conventions are _required_ within the `nuxt/` organization and rec
126
126
 
127
127
  #### Module Conventions
128
128
 
129
- Modules should follow the [Nuxt module template](https://github.com/nuxt/starter/tree/module). See [module guide](/docs/3.x/guide/going-further/modules) for more information.
129
+ Modules should follow the [Nuxt module template](https://github.com/nuxt/starter/tree/module). See [module guide](/docs/3.x/guide/modules) for more information.
130
130
 
131
131
  #### Use Core `unjs/` Libraries
132
132
 
@@ -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
- * [unbuild](https://github.com/unjs/unbuild) - rollup-powered build system
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`
@@ -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
 
@@ -172,7 +172,7 @@ We recommend using [VS Code](https://code.visualstudio.com) along with the [ESLi
172
172
 
173
173
  #### No Prettier
174
174
 
175
- Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix`, `pnpm lint --fix`, or `bun run lint --fix` or referring the [ESLint section](#use-eslint) for IDE Setup.
175
+ Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix`, `pnpm lint --fix`, `bun run lint --fix`, or `deno run lint --fix` or referring the [ESLint section](/docs/3.x/community/contribution#use-eslint) for IDE Setup.
176
176
 
177
177
  If you have Prettier installed in your editor, we recommend you disable it when working on the project to avoid conflict.
178
178
 
@@ -218,6 +218,6 @@ Here are some tips that may help improve your documentation:
218
218
  Nuxt will throw an error.
219
219
  ::
220
220
 
221
- ::read-more{to="/docs/community/framework-contribution#documentation-guide"}
221
+ ::read-more{to="/docs/3.x/community/framework-contribution#documentation-guide"}
222
222
  Learn how to contribute to the documentation.
223
223
  ::
@@ -8,19 +8,19 @@ Once you've read the [general contribution guide](/docs/3.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
@@ -42,7 +42,7 @@ To contribute to Nuxt, you need to set up a local environment.
42
42
  git checkout -b my-new-branch
43
43
  ```
44
44
 
45
- Then, test your changes against the [playground](#playground) and [test](#testing) your changes before submitting a pull request.
45
+ Then, test your changes against the [playground](/docs/3.x/community/framework-contribution#playground) and [test](/docs/3.x/community/framework-contribution#testing) your changes before submitting a pull request.
46
46
 
47
47
  ### Playground
48
48