support configuring the port

This commit is contained in:
jinhui.li
2025-07-20 01:00:33 +08:00
parent 174c9a740f
commit d0de78eaf0
5 changed files with 10 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ async function run(options: RunOptions = {}) {
);
}
const port = options.port || 3456;
const port = config.PORT || 3456;
// Save the PID of the background process
savePid(process.pid);