Merge branch 'main' into multi-tenant
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user