Merge branch 'main' into multi-tenant

This commit is contained in:
2024-08-19 10:20:57 +08:00
17 changed files with 219 additions and 27 deletions

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: [