Merge branch 'main' into multi-tenant

This commit is contained in:
simonzhangsz committed 2024-08-19 10:20:57 +08:00
commit 8fbd4f3952
17 files changed
+219 -27

No files matched your search

+7 -1
View File
@@ -20,7 +20,7 @@ export default defineConfig(({ mode }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
[env.VITE_API_BASE_URL]: {
// target: 'http://192.168.2.166:3030',
// target: 'http://192.168.2.166:33030',
target: 'http://192.168.5.58:33040',
changeOrigin: true,
rewrite: p => p.replace(env.VITE_API_BASE_URL, ''),
@@ -54,6 +54,7 @@ export default defineConfig(({ mode }) => {
},
},
build: {
target: 'esnext', // Use 'esnext' to support the latest features
sourcemap: false,
chunkSizeWarningLimit: 500, // 调整区块大小警告限制(以kB为单位)
rollupOptions: {
@@ -74,6 +75,11 @@ export default defineConfig(({ mode }) => {
},
},
optimizeDeps: {
esbuildOptions: {
supported: {
'top-level-await': true,
},
},
include: ['@ant-design/icons-vue', 'ant-design-vue'],
},
plugins: [