fix system log in standalone

This commit is contained in:
Proddy
2023-02-26 16:43:56 +01:00
parent 471d18f7fa
commit 2ffa5fbe36
3 changed files with 14 additions and 39 deletions

View File

@@ -9,7 +9,6 @@ export default defineConfig(({ command, mode }) => {
if (mode === 'hosted') {
return {
// hosted, ignore all errors, output to dist
// plugins: [react({ plugins: [['@swc/plugin-styled-components', {}]] }), viteTsconfigPaths(), svgrPlugin()]
plugins: [react(), viteTsconfigPaths(), svgrPlugin(), visualizer({ gzipSize: true }) as PluginOption]
};
} else {
@@ -33,8 +32,12 @@ export default defineConfig(({ command, mode }) => {
'/api': {
target: 'http://localhost:3080',
changeOrigin: true,
secure: false,
ws: true
secure: false
},
'/es': {
target: 'http://localhost:3080',
changeOrigin: true,
secure: false
}
}
}