mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-07-13 01:01:48 +08:00
perf: 增加 MERGE 模式下的信息输出
This commit is contained in:
parent
4111b8fabf
commit
e6d05fd873
@ -40,9 +40,11 @@ export default function serve() {
|
|||||||
'SUB_STORE_FRONTEND_BACKEND_PATH should start with /',
|
'SUB_STORE_FRONTEND_BACKEND_PATH should start with /',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$.info(
|
if (be_merge) {
|
||||||
`[BACKEND PREFIX] ${host}:${port}${fe_be_path} -> ${host}:${port}`,
|
$.info(`[BACKEND] MERGE mode is [ON].`);
|
||||||
);
|
$.info(`[BACKEND && FRONTEND] ${host}:${port}`);
|
||||||
|
}
|
||||||
|
$.info(`[BACKEND PREFIX] ${host}:${port}${fe_be_path}`);
|
||||||
$app.use((req, res, next) => {
|
$app.use((req, res, next) => {
|
||||||
if (req.path.startsWith(fe_be_path)) {
|
if (req.path.startsWith(fe_be_path)) {
|
||||||
req.url = req.url.replace(fe_be_path, '') || '/';
|
req.url = req.url.replace(fe_be_path, '') || '/';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user