Skip to content

Commit 194a265

Browse files
authored
docs: Update playground links for v2 in the v2 doccumentation (#8902)
1 parent 7a3a9bd commit 194a265

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Note: The test build environment uses a [different default set of Vite config](h
9999

100100
### Extending the Test Suite
101101

102-
To add new tests, you should find a related playground to the fix or feature (or create a new one). As an example, static assets loading are tested in the [assets playground](https://github.com/vitejs/vite/tree/main/packages/playground/assets). In this Vite App, there is a test for `?raw` imports, with [a section is defined in the `index.html` for it](https://github.com/vitejs/vite/blob/71215533ac60e8ff566dc3467feabfc2c71a01e2/packages/playground/assets/index.html#L121):
102+
To add new tests, you should find a related playground to the fix or feature (or create a new one). As an example, static assets loading are tested in the [assets playground](https://github.com/vitejs/vite/tree/v2/packages/playground/assets). In this Vite App, there is a test for `?raw` imports, with [a section is defined in the `index.html` for it](https://github.com/vitejs/vite/blob/71215533ac60e8ff566dc3467feabfc2c71a01e2/packages/playground/assets/index.html#L121):
103103

104104
```html
105105
<h2>?raw import</h2>

docs/guide/ssr.md

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

2323
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:
2424

25-
- [Vue 3](https://github.com/vitejs/vite/tree/main/packages/playground/ssr-vue)
26-
- [React](https://github.com/vitejs/vite/tree/main/packages/playground/ssr-react)
25+
- [Vue 3](https://github.com/vitejs/vite/tree/v2/packages/playground/ssr-vue)
26+
- [React](https://github.com/vitejs/vite/tree/v2/packages/playground/ssr-react)
2727

2828
## Source Structure
2929

@@ -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/packages/playground/ssr-vue) and [React](https://github.com/vitejs/vite/tree/main/packages/playground/ssr-react) demos for working setup.
180+
Refer to the [Vue](https://github.com/vitejs/vite/tree/v2/packages/playground/ssr-vue) and [React](https://github.com/vitejs/vite/tree/v2/packages/playground/ssr-react) demos for working setup.
181181
182182
## Generating Preload Directives
183183

0 commit comments

Comments
 (0)