@nuxt/docs-nightly 5.0.0-2611101354-e901ff7 → 5.0.0-2611101502-0366cac

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.
@@ -147,6 +147,10 @@ With `sensitive: false`, Nuxt matches [route rules](/docs/guide/concepts/renderi
147
147
 
148
148
  The build fails if a constraint matches an upper-case letter but not its lower-case form, such as `[A-Z]`, `\x41` or `(?:FOO)`, or is a negated class that excludes only one of them, such as `[^a-z]`. Use `[a-z]` instead.
149
149
 
150
+ #### Server middleware with case-insensitive routing
151
+
152
+ Nitro matches the `route` of a server middleware case-sensitively. With `sensitive: false`, a middleware registered for `/admin/**` with [`serverHandlers`](/docs/api/nuxt-config#serverhandlers) or [`addServerHandler`](/docs/api/kit/nitro#addserverhandler) does not run for `/Admin`, but the page router still renders the page at `/admin`. If you use server middleware to protect pages, keep `sensitive` set to `true`.
153
+
150
154
  ### Hash Mode (SPA)
151
155
 
152
156
  You can enable hash history in SPA mode using the `hashMode` [config](/docs/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**.
@@ -53,6 +53,8 @@ A route ending in `/**` matches its base path too, so `route: '/_fonts/**'` serv
53
53
 
54
54
  This does not apply to middleware. On a Nitro 2 host, a middleware `route` is a literal path prefix: `route: '/admin'` runs for `/admin` and every path that starts with it, while `route: '/admin/**'` only runs for paths that start with the characters `/admin/**`. Register middleware on its base path there.
55
55
 
56
+ A middleware `route` is matched case-sensitively, even when pages are not. With `router.options.sensitive: false`, a middleware that protects pages does not run for a case variant of its route, such as `/Admin` for `/admin` (see [server middleware with case-insensitive routing](/docs/guide/recipes/custom-routing#server-middleware-with-case-insensitive-routing)).
57
+
56
58
  ::read-more{to="/docs/guide/modules/server-compatibility"}
57
59
  Learn when to register one path per server API, and which key to write your handler against.
58
60
  ::
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "5.0.0-2611101354-e901ff7",
3
+ "version": "5.0.0-2611101502-0366cac",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",