浏览代码

Update:更新环境隔离配置

XieXing 3 月之前
父节点
当前提交
1af041a802
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      shudao-vue-frontend/src/utils/apiConfig.js

+ 6 - 6
shudao-vue-frontend/src/utils/apiConfig.js

@@ -52,12 +52,12 @@ export const BACKEND_API_PREFIX = '/apiv1'
 
 /**
  * AI对话服务 - 报告生成 (ReportGenerator)
- * 本地/测试: /api/v1 (通过代理)
- * 生产: /chatwithai/api/v1 (通过 nginx 代理)
+ * 本地: /api/v1 (通过 vite 代理到 127.0.0.1:28002)
+ * 测试/生产: /chatwithai/api/v1 (通过 nginx 代理)
  */
 export const REPORT_API_PREFIX = getEnvConfig({
   local: '/api/v1',
-  test: '/api/v1',
+  test: '/chatwithai/api/v1',
   prod: '/chatwithai/api/v1'
 })
 
@@ -68,12 +68,12 @@ export const SSE_API_PREFIX = REPORT_API_PREFIX
 
 /**
  * 认证网关服务 (4A统一API网关)
- * 本地/测试: /api (通过代理)
- * 生产: /auth/api (通过 nginx 代理)
+ * 本地: /api (通过 vite 代理到 127.0.0.1:28004)
+ * 测试/生产: /auth/api (通过 nginx 代理)
  */
 export const AUTH_GATEWAY_URL = getEnvConfig({
   local: '/api',
-  test: '/api',
+  test: '/auth/api',
   prod: '/auth/api'
 })