1 Star 0 Fork 0

caicongyang/risk-rule-engine-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
caicongyang 提交于 2024-11-19 18:05 . xxx
import { defineApplicationConfig } from '@vben/vite-config';
import Inspector from 'vite-plugin-vue-inspector';
export default defineApplicationConfig({
overrides: {
optimizeDeps: {
include: [
'echarts/core',
'echarts/charts',
'echarts/components',
'echarts/renderers',
'qrcode',
'@iconify/iconify',
'ant-design-vue/es/locale/zh_CN',
'ant-design-vue/es/locale/en_US',
],
},
server: {
proxy: {
'/stock': {
target: 'http://127.0.0.1:8888',
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/stock`), ''),
},
'/t-etf': {
target: 'http://127.0.0.1:8888',
changeOrigin: true,
},
'/t-stock-limit': {
target: 'http://127.0.0.1:8888',
changeOrigin: true,
},
'/basic-api': {
target: 'http://localhost:3000',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
},
'/upload': {
target: 'http://localhost:3300/upload',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
},
},
open: true,
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
plugins: [
Inspector({
openInEditorHost: 'http://localhost:5173',
}),
],
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/caicongyang/risk-rule-engine-admin.git
git@gitee.com:caicongyang/risk-rule-engine-admin.git
caicongyang
risk-rule-engine-admin
risk-rule-engine-admin
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385