@nuxt/docs-nightly 5.0.0-29827390.1d6daef9 → 5.0.0-29828962.bef27894
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.
|
@@ -65,7 +65,7 @@ Or for other runtimes:
|
|
|
65
65
|
|
|
66
66
|
## Hybrid Rendering
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Nuxt has a powerful feature called `routeRules` which allows you to define a set of rules to customize how each route of your Nuxt app is rendered (and more). Nuxt compiles the rules, and the default server builder (Nitro) applies the server-side ones.
|
|
69
69
|
|
|
70
70
|
```ts twoslash [nuxt.config.ts]
|
|
71
71
|
export default defineNuxtConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 'prerenderRoutes'
|
|
3
|
-
description: prerenderRoutes hints
|
|
3
|
+
description: prerenderRoutes hints that an additional route should be prerendered.
|
|
4
4
|
minimalVersion: "3.8"
|
|
5
5
|
links:
|
|
6
6
|
- label: Source
|
|
@@ -9,7 +9,7 @@ links:
|
|
|
9
9
|
size: xs
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
When prerendering, you can hint
|
|
12
|
+
When prerendering, you can hint that additional paths should be prerendered, even if their URLs do not show up in the HTML of the generated page. Nuxt collects the hints and passes them to your server builder's prerenderer (Nitro by default).
|
|
13
13
|
|
|
14
14
|
::important
|
|
15
15
|
`prerenderRoutes` can only be called within the [Nuxt context](/docs/guide/going-further/nuxt-app#the-nuxt-context).
|