From e6d05fd87387f7d04dba183e0e76d034c61c0493 Mon Sep 17 00:00:00 2001 From: Aritro37 <85866469+Aritro37@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:08:48 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=8A=A0=20MERGE=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84=E4=BF=A1=E6=81=AF=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/restful/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/src/restful/index.js b/backend/src/restful/index.js index 5034d1e..40b39fe 100644 --- a/backend/src/restful/index.js +++ b/backend/src/restful/index.js @@ -40,9 +40,11 @@ export default function serve() { 'SUB_STORE_FRONTEND_BACKEND_PATH should start with /', ); } - $.info( - `[BACKEND PREFIX] ${host}:${port}${fe_be_path} -> ${host}:${port}`, - ); + if (be_merge) { + $.info(`[BACKEND] MERGE mode is [ON].`); + $.info(`[BACKEND && FRONTEND] ${host}:${port}`); + } + $.info(`[BACKEND PREFIX] ${host}:${port}${fe_be_path}`); $app.use((req, res, next) => { if (req.path.startsWith(fe_be_path)) { req.url = req.url.replace(fe_be_path, '') || '/';