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
|
# API Configuration
|
||||||
NEXT_PUBLIC_API_URL=https://rwaapi.szaiai.com
|
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
|
# Application Info
|
||||||
NEXT_PUBLIC_APP_NAME=RWADurian Mobile Upgrade
|
NEXT_PUBLIC_APP_NAME=RWADurian Mobile Upgrade
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,10 @@ const APP_CONFIGS: Record<AppType, ApiConfig> = {
|
||||||
apiPrefix: '/api/v1/versions',
|
apiPrefix: '/api/v1/versions',
|
||||||
},
|
},
|
||||||
// 股行 App - 连接新的 mining-admin-service 后端
|
// 股行 App - 连接新的 mining-admin-service 后端
|
||||||
|
// 生产环境通过 Kong 路由: /api/v2/mining-admin -> mining-admin-service:3023/api/v2
|
||||||
mining: {
|
mining: {
|
||||||
baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023',
|
baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023/api/v2',
|
||||||
apiPrefix: '/api/v2/versions',
|
apiPrefix: '/versions',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue