Skip to content

Commit 5d3b71b

Browse files
committed
ssr fix
1 parent 8b04064 commit 5d3b71b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ export default ({ mode }) => {
4545
preview: {
4646
port: devPort,
4747
},
48+
ssr: {
49+
noExternal: true, // bundle node server related files, so we don't need node_modules in production
50+
},
4851
});
4952
};

0 commit comments

Comments
 (0)