Skip to content

Commit ec69cf0

Browse files
committed
feat: 优化环境变量提示
1 parent 95958c8 commit ec69cf0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.36.25",
3+
"version": "2.36.26",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"packageManager": "pnpm@11.0.9",

backend/src/restful/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export default function serve() {
5252
? createFrontendStaticMiddleware(fe_path, '/index.html')
5353
: null;
5454
if (be_prefix || be_merge) {
55-
if (!fe_be_path.startsWith('/')) {
55+
if (!fe_be_path?.startsWith('/')) {
5656
throw new Error(
57-
'SUB_STORE_FRONTEND_BACKEND_PATH should start with /',
57+
'SUB_STORE_FRONTEND_BACKEND_PATH must be set and start with "/" when SUB_STORE_BACKEND_PREFIX or SUB_STORE_BACKEND_MERGE is enabled',
5858
);
5959
}
6060
if (be_merge) {
@@ -371,7 +371,7 @@ export default function serve() {
371371
if (fe_be_path) {
372372
if (!fe_be_path.startsWith('/')) {
373373
throw new Error(
374-
'SUB_STORE_FRONTEND_BACKEND_PATH should start with /',
374+
'SUB_STORE_FRONTEND_BACKEND_PATH must start with "/"',
375375
);
376376
}
377377
be_api_rewrite = `${

0 commit comments

Comments
 (0)