mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 15:33:47 +00:00
feat: 优化环境变量提示
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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 = `${
|
||||
|
||||
Reference in new issue
Block a user