Use var for listen path, not const
Some checks failed
/ node-check (push) Successful in 3s
/ prettier (push) Successful in 16s
/ boot (push) Successful in 33s
/ tests (push) Failing after 44s

This commit is contained in:
9pfs 2024-06-14 17:00:57 +00:00
parent 66438df3bb
commit d45cb8c6ba
Signed by: 9pfs
SSH key fingerprint: SHA256:TOcGxMQCfy4VvRM8AzgXErKXdkAtaTcpGXgYMpyoJoY

View file

@ -132,7 +132,7 @@ app.get("/stats", function (req, res) {
return res.json(stats);
});
const listen_path = process.env?.LISTEN_PATH;
var listen_path = process.env?.LISTEN_PATH;
if (listen_path == null)
listen_path =
process.env?.NODE_ENV == "production"