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: guide/ssr.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ This is statically replaced during build so it will allow tree-shaking of unused
63
63
64
64
## Setting Up the Dev Server
65
65
66
-
When building an SSR app, you likely want to have full control over your main server and decouple Vite from the production environment. It is therefore recommended to use Vite in middleware mode. Here is an example with [express](https://expressjs.com/) (v4):
66
+
When building an SSR app, you likely want to have full control over your main server and decouple Vite from the production environment. It is therefore recommended to use Vite in middleware mode. Here is an example with [express](https://expressjs.com/):
67
67
68
68
```js{15-18} twoslash [server.js]
69
69
importfsfrom'node:fs'
@@ -93,7 +93,7 @@ async function createServer() {
93
93
// middlewares). The following is valid even after restarts.
0 commit comments