NODE_ENV if not set, change to production

This commit is contained in:
LouisLam 2021-09-14 23:28:38 +08:00
parent 069c811af8
commit 3234aec5b3

View File

@ -1,4 +1,9 @@
console.log("Welcome to Uptime Kuma");
if (! process.env.NODE_ENV) {
process.env.NODE_ENV = "production";
}
console.log("Node Env: " + process.env.NODE_ENV);
const { sleep, debug, TimeLogger, getRandomInt } = require("../src/util");