feat: 优化环境变量提示

This commit is contained in:
xream committed 2026-07-29 18:08:38 +08:00
1 parent 95958c85de
commit ec69cf0b6c
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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",
+3 -3
View File
@@ -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 = `${