File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
packages/react-router-dev/vite/rsc Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @react-router/dev " : patch
3+ ---
4+
5+ Support for buildDirectory on RSC framework output
Original file line number Diff line number Diff line change @@ -75,9 +75,21 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
7575 jsxDev : viteCommand !== "build" ,
7676 } ,
7777 environments : {
78- client : { build : { outDir : "build/client" } } ,
79- rsc : { build : { outDir : "build/server" } } ,
80- ssr : { build : { outDir : "build/server/__ssr_build" } } ,
78+ client : {
79+ build : {
80+ outDir : join ( config . buildDirectory , "client" ) ,
81+ } ,
82+ } ,
83+ rsc : {
84+ build : {
85+ outDir : join ( config . buildDirectory , "server" ) ,
86+ } ,
87+ } ,
88+ ssr : {
89+ build : {
90+ outDir : join ( config . buildDirectory , "server/__ssr_build" ) ,
91+ } ,
92+ } ,
8193 } ,
8294 build : {
8395 rollupOptions : {
You can’t perform that action at this time.
0 commit comments