fix(mobile-upgrade): 修复股行App版本管理API路径匹配Kong路由
NEXT_PUBLIC_MINING_API_URL 从 /mining-admin 改为 /api/v2/mining-admin, apiPrefix 从 /api/v2/versions 改为 /versions,使最终URL匹配Kong路由 /api/v2/mining-admin/* Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7e289430ae
commit
5ef0992448
|
|
@ -1,6 +1,6 @@
|
|||
# API Configuration
|
||||
NEXT_PUBLIC_API_URL=https://rwaapi.szaiai.com
|
||||
NEXT_PUBLIC_MINING_API_URL=https://rwaapi.szaiai.com/mining-admin
|
||||
NEXT_PUBLIC_MINING_API_URL=https://rwaapi.szaiai.com/api/v2/mining-admin
|
||||
|
||||
# Application Info
|
||||
NEXT_PUBLIC_APP_NAME=RWADurian Mobile Upgrade
|
||||
|
|
|
|||
|
|
@ -61,9 +61,10 @@ const APP_CONFIGS: Record<AppType, ApiConfig> = {
|
|||
apiPrefix: '/api/v1/versions',
|
||||
},
|
||||
// 股行 App - 连接新的 mining-admin-service 后端
|
||||
// 生产环境通过 Kong 路由: /api/v2/mining-admin -> mining-admin-service:3023/api/v2
|
||||
mining: {
|
||||
baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023',
|
||||
apiPrefix: '/api/v2/versions',
|
||||
baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023/api/v2',
|
||||
apiPrefix: '/versions',
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue