Skip to content

Commit f66b3c9

Browse files
committed
fix: ssg
1 parent edc2649 commit f66b3c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ export default defineConfig((env) => ({
2525
}),
2626
rscSsgPlugin(),
2727
],
28+
environments: {
29+
ssr: {
30+
optimizeDeps: {
31+
// TODO: move to plugin
32+
include: ['react-dom/static.edge'],
33+
},
34+
},
35+
},
2836
}))
2937

3038
function rscSsgPlugin(): Plugin[] {

0 commit comments

Comments
 (0)