a522d066ab
问题:错误地为Dify创建了独立的difyBaseUrl配置
正确架构:
客户端 → /api/* → Remix routes → dify-client.server →
FastAPI baseUrl/dify/* → Dify服务
修改:
1. app/config/api-config.ts
- 移除 difyBaseUrl 字段
- 所有环境统一使用 baseUrl (FastAPI后端地址)
- 添加注释说明 baseUrl 包含 /dify 代理
2. app/services/dify-client.server.ts
- 使用 API_BASE_URL 而非 DIFY_BASE_URL
- API_URL: `${API_BASE_URL}/dify`
各环境FastAPI地址:
- development: http://172.16.0.55:8000
- testing: http://nas.7bm.co:8873
- production: http://10.79.97.17:8000
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>