server(themes): make themes server port configurable

This commit is contained in:
Abdullah Atta
2026-01-01 09:46:25 +05:00
parent 313d47d9ff
commit 534b810350

View File

@@ -27,8 +27,9 @@ const server = createHTTPServer({
router: ThemesAPI
});
const PORT = parseInt(process.env.PORT || "9000");
server.listen(PORT);
console.log(`Server started successfully on: http://localhost:${PORT}/`);
const HOST = process.env.HOST || "localhost";
server.listen(PORT, HOST);
console.log(`Server started successfully on: http://${HOST}:${PORT}/`);
syncThemes();