feat: update env configs and add team canvas endpoint

This commit is contained in:
2025-11-10 11:09:22 +08:00
parent b2053760be
commit 81fa34669a
19 changed files with 220 additions and 55 deletions

View File

@@ -46,6 +46,20 @@ export default defineConfig({
server: {
host: '0.0.0.0',
allowedHosts: ['154.9.253.114', 'localhost', 'teres.deep-pilot.chat'],
proxy: {
// 将 /ragflow 下的所有请求代理到 Umi 开发服务器(默认 9222
'/ragflow': {
target: 'http://localhost:9222',
changeOrigin: true,
ws: true,
// 不重写路径,保持 /ragflow 前缀用于 Umi base/publicPath
},
'/__umi': {
target: 'http://localhost:9222',
changeOrigin: true,
ws: true,
},
}
},
resolve: {
alias: {