From ec69cf0b6c1ce1c5bdb4db70f0fbb4304032bf60 Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 29 Jul 2026 18:08:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/restful/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/package.json b/backend/package.json index 254d86f9..20503560 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.36.25", + "version": "2.36.26", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "packageManager": "pnpm@11.0.9", diff --git a/backend/src/restful/index.js b/backend/src/restful/index.js index 6cc60726..39748b81 100644 --- a/backend/src/restful/index.js +++ b/backend/src/restful/index.js @@ -52,9 +52,9 @@ export default function serve() { ? createFrontendStaticMiddleware(fe_path, '/index.html') : null; if (be_prefix || be_merge) { - if (!fe_be_path.startsWith('/')) { + if (!fe_be_path?.startsWith('/')) { throw new Error( - 'SUB_STORE_FRONTEND_BACKEND_PATH should start with /', + 'SUB_STORE_FRONTEND_BACKEND_PATH must be set and start with "/" when SUB_STORE_BACKEND_PREFIX or SUB_STORE_BACKEND_MERGE is enabled', ); } if (be_merge) { @@ -371,7 +371,7 @@ export default function serve() { if (fe_be_path) { if (!fe_be_path.startsWith('/')) { throw new Error( - 'SUB_STORE_FRONTEND_BACKEND_PATH should start with /', + 'SUB_STORE_FRONTEND_BACKEND_PATH must start with "/"', ); } be_api_rewrite = `${