Skip to content

Commit 8f001ec

Browse files
committed
chore(rsc): mention Nitro integration
1 parent 3c5de79 commit 8f001ec

File tree

3 files changed

+3654
-113
lines changed

3 files changed

+3654
-113
lines changed

packages/plugin-rsc/examples/starter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"react-dom": "^19.1.1"
1616
},
1717
"devDependencies": {
18+
"@hiogawa/vite-plugin-nitro": "https://pkg.pr.new/hi-ogawa/vite-plugins/@hiogawa/vite-plugin-nitro@fc7079c",
1819
"@types/react": "^19.1.9",
1920
"@types/react-dom": "^19.1.7",
2021
"@vitejs/plugin-react": "latest",

packages/plugin-rsc/examples/starter/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import rsc from '@vitejs/plugin-rsc'
22
import react from '@vitejs/plugin-react'
33
import { defineConfig } from 'vite'
44
// import inspect from "vite-plugin-inspect";
5+
import nitro from '@hiogawa/vite-plugin-nitro'
56

67
export default defineConfig({
78
plugins: [
@@ -21,6 +22,11 @@ export default defineConfig({
2122
// use https://github.com/antfu-collective/vite-plugin-inspect
2223
// to understand internal transforms required for RSC.
2324
// inspect(),
25+
26+
// use Nitro plugin to build
27+
nitro({
28+
server: { environmentName: 'rsc' },
29+
}),
2430
],
2531

2632
// specify entry point for each environment.

0 commit comments

Comments
 (0)