File tree Expand file tree Collapse file tree 3 files changed +3654
-113
lines changed 
packages/plugin-rsc/examples/starter Expand file tree Collapse file tree 3 files changed +3654
-113
lines changed Original file line number Diff line number Diff line change 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"  ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import rsc from '@vitejs/plugin-rsc'
22import  react  from  '@vitejs/plugin-react' 
33import  {  defineConfig  }  from  'vite' 
44// import inspect from "vite-plugin-inspect"; 
5+ import  nitro  from  '@hiogawa/vite-plugin-nitro' 
56
67export  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. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments