fixed ssr errors
This commit is contained in:
@@ -5,4 +5,9 @@ import viteTsconfigPaths from 'vite-tsconfig-paths';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), ssr({ prerender: true }), viteTsconfigPaths()],
|
||||
define: {
|
||||
global: {
|
||||
window: {},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user