Files
aiagent/frontend/vite.config.ts
renjianbo 0608161c82 feat: 完善企业场景多线路由与执行稳定性
补齐平台模板与场景 DSL、预算控制、执行看板和企业场景脚本,增强 Windows 启动/迁移与前端代理和聊天会话记忆,修复执行创建阶段 500 与异步链路排障体验。

Made-with: Cursor
2026-04-09 21:58:53 +08:00

25 lines
686 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 3001,
proxy: {
'/api': {
// 8037 若被旧实例/其它程序占用(/health 无 checks可设环境变量指向本仓库 API例如
// PowerShell: $env:AIAGENT_API_PROXY='http://127.0.0.1:8040'; npm run dev
target: process.env.AIAGENT_API_PROXY || 'http://127.0.0.1:8037',
changeOrigin: true
}
}
}
})