Files
lgp-admin-plus/apps/web-antd/vite.config.ts
李琦 7895909a0c Merge remote-tracking branch 'vben/main'
# Conflicts:
#	README.md
#	apps/web-antd/src/adapter/component/index.ts
#	apps/web-antd/src/layouts/basic.vue
#	apps/web-antd/src/router/routes/modules/demos.ts
#	apps/web-antd/src/views/demos/antd/index.vue
#	package.json
#	pnpm-lock.yaml
2026-08-10 13:28:08 +08:00

23 lines
514 B
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
port: 14002,
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
// target: 'http://localhost:5320/api',
target: 'http://127.0.0.1:15002/api/',
ws: true,
},
},
},
},
};
});