Skip to content

Commit 02cd043

Browse files
authored
docs(ssr): update example projects (#14630)
1 parent de87fe4 commit 02cd043

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/guide/ssr.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ If you have questions, the community is usually helpful at [Vite Discord's #ssr
1616

1717
## Example Projects
1818

19-
Vite provides built-in support for server-side rendering (SSR). The Vite playground contains example SSR setups for Vue 3 and React, which can be used as references for this guide:
19+
Vite provides built-in support for server-side rendering (SSR). [`create-vite-extra`](https://github.com/bluwy/create-vite-extra) contains example SSR setups you can use as references for this guide:
2020

21-
- [Vue 3](https://github.com/vitejs/vite-plugin-vue/tree/main/playground/ssr-vue)
22-
- [React](https://github.com/vitejs/vite-plugin-react/tree/main/playground/ssr-react)
21+
- [Vanilla](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-vanilla)
22+
- [Vue](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-vue)
23+
- [React](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-react)
24+
- [Preact](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-preact)
25+
- [Svelte](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-svelte)
26+
- [Solid](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-solid)
27+
28+
You can also scaffold these projects locally by [running `create-vite`](./index.md#scaffolding-your-first-vite-project) and choose `Others > create-vite-extra` under the framework option.
2329

2430
## Source Structure
2531

@@ -177,7 +183,7 @@ Then, in `server.js` we need to add some production specific logic by checking `
177183
178184
- Move the creation and all usage of the `vite` dev server behind dev-only conditional branches, then add static file serving middlewares to serve files from `dist/client`.
179185
180-
Refer to the [Vue](https://github.com/vitejs/vite-plugin-vue/tree/main/playground/ssr-vue) and [React](https://github.com/vitejs/vite-plugin-react/tree/main/playground/ssr-react) demos for a working setup.
186+
Refer to the [example projects](#example-projects) for a working setup.
181187
182188
## Generating Preload Directives
183189

0 commit comments

Comments
 (0)