feat: Node 版后端支持挂载前端文件夹, 环境变量 SUB_STORE_FRONTEND_PATH, SUB_STORE_FRONTEND_HOST, SUB_STORE_FRONTEND_PORT

This commit is contained in:
xream
2023-12-10 13:13:39 +08:00
parent 7aaa03d4ca
commit a1776644a0
5 changed files with 55 additions and 42 deletions

View File

@@ -32,7 +32,7 @@ export default function express({ substore: $, port, host }) {
app.start = () => {
const listener = app.listen(port, host, () => {
const { address, port } = listener.address();
$.info(`Express started on ${address}:${port}`);
$.info(`[BACKEND] ${address}:${port}`);
});
};
return app;