@nuxt/docs-nightly 5.0.0-29739921.e985b20b → 5.0.0-29740013.7699b129

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.
@@ -59,6 +59,7 @@ export default defineNuxtConfig({
59
59
  When you set your `future.compatibilityVersion` to `5`, defaults throughout your Nuxt configuration will change to opt in to Nuxt v5 behavior, including:
60
60
 
61
61
  - **Vite Environment API**: Uses the new [Vite Environment API](/docs/4.x/getting-started/upgrade#migration-to-vite-environment-api) for improved build configuration
62
+ - **Case-sensitive routing**: Page routes [match URL casing exactly](/docs/4.x/getting-started/upgrade#case-sensitive-routing), consistent with Nitro
62
63
  - **Normalized Page Names**: Page component names will [match their route names](/docs/4.x/getting-started/upgrade#normalized-page-component-names) for consistent `<KeepAlive>` behavior
63
64
  - **`clearNuxtState` resets to defaults**: `clearNuxtState` will [reset state to its initial value](/docs/4.x/getting-started/upgrade#respect-defaults-when-clearing-usestate) instead of setting it to `undefined`
64
65
  - **Non-async `callHook`**: [`callHook` may return `void`](/docs/4.x/getting-started/upgrade#non-async-callhook) instead of always returning a `Promise`
@@ -72,6 +73,28 @@ This section is subject to change until the final release, so please check back
72
73
 
73
74
  Breaking or significant changes will be noted below along with migration steps for backward/forward compatibility.
74
75
 
76
+ ### Case-Sensitive Routing
77
+
78
+ 🚦 **Impact Level**: Minimal
79
+
80
+ #### What Changed
81
+
82
+ With `compatibilityVersion: 5`, page routes match URLs case-sensitively, consistent with Nitro. For example, `/About` no longer matches `pages/about.vue`.
83
+
84
+ #### Migration Steps
85
+
86
+ Update links to use the same casing as their page routes. To keep case-insensitive matching:
87
+
88
+ ```ts twoslash [nuxt.config.ts]
89
+ export default defineNuxtConfig({
90
+ router: {
91
+ options: {
92
+ sensitive: false,
93
+ },
94
+ },
95
+ })
96
+ ```
97
+
75
98
  ### Migration to Vite Environment API
76
99
 
77
100
  🚦 **Impact Level**: Medium
@@ -137,6 +137,10 @@ export default defineNuxtConfig({
137
137
  })
138
138
  ```
139
139
 
140
+ ::note
141
+ With `future.compatibilityVersion: 5`, routing is case-sensitive by default to match Nitro. Set `router.options.sensitive` to `false` to opt out.
142
+ ::
143
+
140
144
  ### Hash Mode (SPA)
141
145
 
142
146
  You can enable hash history in SPA mode using the `hashMode` [config](/docs/4.x/api/nuxt-config#router). In this mode, router uses a hash character (#) before the actual URL that is internally passed. When enabled, the **URL is never sent to the server** and **SSR is not supported**.
@@ -0,0 +1,35 @@
1
+ ---
2
+ title: App Config
3
+ description: Nuxt Kit provides a set of utilities to help you access and modify Nuxt app configuration.
4
+ links:
5
+ - label: Source
6
+ icon: i-simple-icons-github
7
+ to: https://github.com/nuxt/nuxt/blob/main/packages/kit/src/app-config.ts
8
+ size: xs
9
+ ---
10
+
11
+ ## `updateAppConfig`
12
+
13
+ Update the app configuration that will be applied to `nuxt.options.appConfig`. This is useful for modules to set default values that can be overridden by user configuration. The update is merged with the existing configuration using [`defu`](https://github.com/unjs/defu).
14
+
15
+ ### Type
16
+
17
+ ```ts
18
+ function updateAppConfig (appConfig: Record<string, unknown>): void
19
+ ```
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import { defineNuxtModule, updateAppConfig } from '@nuxt/kit'
25
+
26
+ export default defineNuxtModule({
27
+ setup () {
28
+ updateAppConfig({
29
+ myModule: {
30
+ option: 'value',
31
+ },
32
+ })
33
+ },
34
+ })
35
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: 'NUXT_E4016'
3
+ description: 'A nested page cannot be displayed because its parent page does not render <NuxtPage />.'
4
+ navigation: false
5
+ ---
6
+
7
+ # E4016
8
+
9
+ The current route matches a nested page, but the parent page component does not render `<NuxtPage />`. Vue Router can only display a child page inside its parent's `<NuxtPage />` outlet, so the child page is never shown.
10
+
11
+ This happens with a directory structure like the following, when `parent.vue` does not contain `<NuxtPage />`:
12
+
13
+ ```bash [Directory Structure]
14
+ -| pages/
15
+ ---| parent/
16
+ ------| child.vue
17
+ ---| parent.vue
18
+ ```
19
+
20
+ ## Resolution
21
+
22
+ Add `<NuxtPage />` to the parent page component so the child route can render inside it. If you did not intend to create a nested route, restructure your `pages/` directory so the page no longer has child routes.
23
+
24
+ ::read-more{to="/docs/guide/directory-structure/pages#nested-routes"}
25
+ ::
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "5.0.0-29739921.e985b20b",
3
+ "version": "5.0.0-29740013.7699b129",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
File without changes
File without changes
File without changes
File without changes
File without changes