You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/server-side-rendering.md
+4-26Lines changed: 4 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,8 @@ Server-side rendering pre-renders your JavaScript pages on the server, allowing
5
5
> [!NOTE]
6
6
> Server-side rendering uses Node.js to render your pages in a background process; therefore, Node must be available on your server for server-side rendering to function properly.
7
7
8
-
## Install dependencies
9
-
10
-
First, install the additional dependencies required for server-side rendering. This is only necessary for the Vue adapters, so you can skip this step if you're using React or Svelte.
11
-
12
-
:::tabs key:frameworks
13
-
== Vue
14
-
15
-
```shell
16
-
npm install @vue/server-renderer
17
-
```
18
-
19
-
== React
20
-
21
-
```shell
22
-
// No additional dependencies required
23
-
```
24
-
25
-
== Svelte 4|Svelte 5
26
-
27
-
```shell
28
-
// No additional dependencies required
29
-
```
30
-
31
-
:::
8
+
> [!NOTE]
9
+
> For Vue `< 3.2.13` you will need to install `@vue/server-renderer` as a dependency, and use it instead of `vue/server-renderer`.
32
10
33
11
## Add server entry-point
34
12
@@ -42,7 +20,7 @@ This file is going to look very similar to your regular inertia initialization f
0 commit comments