From b548f2494d81cba6cc1427144d69c81288ac78a9 Mon Sep 17 00:00:00 2001 From: riverLethe <865192079@qq.com> Date: Fri, 25 Jul 2025 22:25:47 +0800 Subject: [PATCH] feat/ui:add /mcp url rewrite rule --- frontend/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/next.config.js b/frontend/next.config.js index cda7e23..5b80890 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -29,6 +29,10 @@ const nextConfig = { source: "/uploads/:path*", destination: `${process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"}/uploads/:path*`, }, + { + source: "/mcp/:path*", + destination: `${process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8001"}/mcp/:path*`, + }, ]; },