mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 06:29:17 -04:00
Add support for .env
This commit is contained in:
parent
806eb799c1
commit
683f446cf5
3 changed files with 20 additions and 2 deletions
|
@ -11,6 +11,9 @@ dayjs.extend(require("dayjs/plugin/utc"));
|
|||
dayjs.extend(require("./modules/dayjs/plugin/timezone"));
|
||||
dayjs.extend(require("dayjs/plugin/customParseFormat"));
|
||||
|
||||
// Load environment variables from `.env`
|
||||
require("dotenv").config();
|
||||
|
||||
// Check Node.js Version
|
||||
const nodeVersion = parseInt(process.versions.node.split(".")[0]);
|
||||
const requiredVersion = 14;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue