From 3234aec5b3191f1112f800da30456cef9873d3d2 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 14 Sep 2021 23:28:38 +0800 Subject: [PATCH] NODE_ENV if not set, change to production --- server/server.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/server.js b/server/server.js index 8448b3c8a..d24cc0371 100644 --- a/server/server.js +++ b/server/server.js @@ -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");