From a4090cc285d771867e340cde3e47d90d3956b0eb Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 22:45:16 -0800 Subject: [PATCH] =?UTF-8?q?fix(mining-admin-web):=20=E4=BF=AE=E5=A4=8D=20A?= =?UTF-8?q?PI=20rewrite=20=E8=B7=AF=E5=BE=84=E4=B8=BA=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 next.config.js 中的 API rewrite 从 /api/v1 改为 /api/v2, 与 mining-admin-service 的实际 API 前缀保持一致。 Co-Authored-By: Claude Opus 4.5 --- frontend/mining-admin-web/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/mining-admin-web/next.config.js b/frontend/mining-admin-web/next.config.js index 846aef0b..3ccd409e 100644 --- a/frontend/mining-admin-web/next.config.js +++ b/frontend/mining-admin-web/next.config.js @@ -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*`, }, ]; },