Use var for listen path, not const
This commit is contained in:
parent
66438df3bb
commit
d45cb8c6ba
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue