Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/plugin-rsc/examples/basic/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# rsc basic

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/rsc/examples/basic)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/basic)

https://vite-rsc-basic.hiro18181.workers.dev

```sh
npx giget gh:hi-ogawa/vite-plugins/packages/rsc/examples/basic my-app
npx giget gh:vitejs/vite-plugin-react/packages/plugin-rsc/examples/basic my-app
```
4 changes: 2 additions & 2 deletions packages/plugin-rsc/examples/react-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Vite RSC example based on demo made by React router team with Parcel:

See also [`rsc-movies`](https://github.com/hi-ogawa/rsc-movies/).

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/rsc/examples/react-router?file=src%2Froutes%2Froot.tsx)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/react-router?file=src%2Froutes%2Froot.tsx)

Or try it locally by:

```sh
npx giget gh:hi-ogawa/vite-plugins/packages/rsc/examples/react-router my-app
npx giget gh:vitejs/vite-plugin-react/packages/plugin-rsc/examples/react-router my-app
cd my-app
npm i
npm run dev
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-rsc/examples/starter-cf-single/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

https://vite-rsc-starter.hiro18181.workers.dev

[examples/starter](https://github.com/hi-ogawa/vite-plugins/tree/main/packages/rsc/examples/starter) integrated with [`@cloudflare/vite-plugin`](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare).
[examples/starter](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/starter) integrated with [`@cloudflare/vite-plugin`](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare).

The difference from [examples/react-router](https://github.com/hi-ogawa/vite-plugins/tree/main/packages/rsc/examples/react-router) is that this doesn't require two workers.
The difference from [examples/react-router](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/react-router) is that this doesn't require two workers.

- RSC environment always runs on Cloudflare Workers.
- During development, SSR environment runs as Vite's deafult Node environment.
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-rsc/examples/starter/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Vite + RSC

This example shows how to setup a React application with [Server Component](https://react.dev/reference/rsc/server-components) features on Vite using [`@vitejs/plugin-rsc`](https://github.com/hi-ogawa/vite-plugins/tree/main/packages/rsc).
This example shows how to setup a React application with [Server Component](https://react.dev/reference/rsc/server-components) features on Vite using [`@vitejs/plugin-rsc`](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc).

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/hi-ogawa/vite-plugins/tree/main/packages/rsc/examples/starter)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc/examples/starter)

```sh
# run dev server
Expand All @@ -15,7 +15,7 @@ npm run preview

## API usages

See [`@vitejs/plugin-rsc`](https://github.com/hi-ogawa/vite-plugins/tree/main/packages/rsc) for the documentation.
See [`@vitejs/plugin-rsc`](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc) for the documentation.

- [`vite.config.ts`](./vite.config.ts)
- `@higoawa/vite-rsc/plugin`
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-rsc/examples/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/react": "latest",
"@types/react-dom": "latest",
"@vitejs/plugin-react": "latest",
"vite": "^7.0.2",
"vite-plugin-inspect": "latest"
}
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading