Skip to content

Commit 607ff09

Browse files
committed
test: remove duplicated playgrounds that are tested on other repositories
1 parent 05959c7 commit 607ff09

File tree

198 files changed

+6
-4349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+6
-4349
lines changed

docs/guide/ssr.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ If you have questions, the community is usually helpful at [Vite Discord's #ssr
1818

1919
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:
2020

21-
- [Vue 3](https://github.com/vitejs/vite/tree/main/playground/ssr-vue)
22-
- [React](https://github.com/vitejs/vite/tree/main/playground/ssr-react)
21+
- [Vue 3](https://github.com/vitejs/vite-plugin-vue/tree/main/playground/ssr-vue)
22+
- [React](https://github.com/vitejs/vite-plugin-vue/tree/main/playground/ssr-react)
2323

2424
## Source Structure
2525

@@ -177,7 +177,7 @@ Then, in `server.js` we need to add some production specific logic by checking `
177177
178178
- 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`.
179179
180-
Refer to the [Vue](https://github.com/vitejs/vite/tree/main/playground/ssr-vue) and [React](https://github.com/vitejs/vite/tree/main/playground/ssr-react) demos for a working setup.
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.
181181
182182
## Generating Preload Directives
183183
@@ -201,11 +201,11 @@ const html = await vueServerRenderer.renderToString(app, ctx)
201201
// ctx.modules is now a Set of module IDs that were used during the render
202202
```
203203
204-
In the production branch of `server.js` we need to read and pass the manifest to the `render` function exported by `src/entry-server.js`. This would provide us with enough information to render preload directives for files used by async routes! See [demo source](https://github.com/vitejs/vite/blob/main/playground/ssr-vue/src/entry-server.js) for a full example.
204+
In the production branch of `server.js` we need to read and pass the manifest to the `render` function exported by `src/entry-server.js`. This would provide us with enough information to render preload directives for files used by async routes! See [demo source](https://github.com/vitejs/vite-plugin-vue/blob/main/playground/ssr-vue/src/entry-server.js) for a full example.
205205
206206
## Pre-Rendering / SSG
207207
208-
If the routes and the data needed for certain routes are known ahead of time, we can pre-render these routes into static HTML using the same logic as production SSR. This can also be considered a form of Static-Site Generation (SSG). See [demo pre-render script](https://github.com/vitejs/vite/blob/main/playground/ssr-vue/prerender.js) for working example.
208+
If the routes and the data needed for certain routes are known ahead of time, we can pre-render these routes into static HTML using the same logic as production SSR. This can also be considered a form of Static-Site Generation (SSG). See [demo pre-render script](https://github.com/vitejs/vite-plugin-vue/blob/main/playground/ssr-vue/prerender.js) for working example.
209209
210210
## SSR Externals
211211

playground/react-classic/App.jsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

playground/react-classic/__tests__/react.spec.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

playground/react-classic/index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

playground/react-classic/package.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

playground/react-classic/vite.config.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

playground/react-emotion/App.jsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

playground/react-emotion/__tests__/react.spec.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

playground/react-emotion/index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

playground/react-emotion/package.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)