mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-02 18:36:40 +00:00
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { defineApplicationConfig } from '@vben/vite-config'
|
|
|
|
export default defineApplicationConfig({
|
|
overrides: {
|
|
optimizeDeps: {
|
|
include: [
|
|
'echarts/core',
|
|
'echarts/charts',
|
|
'echarts/components',
|
|
'echarts/renderers',
|
|
'qrcode',
|
|
'@iconify/iconify',
|
|
'ant-design-vue/es/locale/zh_CN',
|
|
],
|
|
},
|
|
server: {
|
|
open: false, // 项目启动后,自动打开
|
|
host: true,
|
|
port: 3300,
|
|
proxy: {
|
|
// 运营管理端
|
|
'/admin': {
|
|
target: 'http://localhost:9999',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/admin`), ''),
|
|
// only https
|
|
// secure: false
|
|
},
|
|
// 商户端
|
|
'/merchant': {
|
|
target: 'http://localhost:8888',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/merchant`), ''),
|
|
// only https
|
|
// secure: false
|
|
},
|
|
},
|
|
warmup: {
|
|
clientFiles: ['./index.html', './src/{views,components}/*'],
|
|
},
|
|
},
|
|
},
|
|
})
|