fix(mining-admin-web): 修复 API rewrite 路径为 v2

将 next.config.js 中的 API rewrite 从 /api/v1 改为 /api/v2,
与 mining-admin-service 的实际 API 前缀保持一致。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 22:45:16 -08:00
parent f790d2bbe5
commit a4090cc285
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const nextConfig = {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3023'}/api/v1/:path*`,
destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3023'}/api/v2/:path*`,
},
];
},