feat: update env configs and add team canvas endpoint
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user