We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
buildDirectory
1 parent ec137f5 commit e5bce7dCopy full SHA for e5bce7d
packages/react-router-dev/vite/rsc/plugin.ts
@@ -76,9 +76,21 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
76
jsxDev: viteCommand !== "build",
77
},
78
environments: {
79
- client: { build: { outDir: "build/client" } },
80
- rsc: { build: { outDir: "build/server" } },
81
- ssr: { build: { outDir: "build/server/__ssr_build" } },
+ client: {
+ build: {
+ outDir: join(config.buildDirectory, "client"),
82
+ },
83
84
+ rsc: {
85
86
+ outDir: join(config.buildDirectory, "server"),
87
88
89
+ ssr: {
90
91
+ outDir: join(config.buildDirectory, "server/__ssr_build"),
92
93
94
95
build: {
96
rollupOptions: {
0 commit comments