Replace dotenv with Node env loader
Some checks failed
Deploy / deploy-frontend (push) Has been cancelled
Deploy / deploy-backend (push) Has been cancelled

This commit is contained in:
Matt Isenhower
2026-08-30 19:23:29 -07:00
parent 5f19ccd2be
commit 37db282b64
3 changed files with 5 additions and 15 deletions

13
package-lock.json generated
View File

@@ -15,7 +15,6 @@
"console-stamp": "^3.1.2",
"cron": "^4.4.0",
"delay": "^4.4.0",
"dotenv": "^17.4.2",
"ecstatic": "^4.1.4",
"he": "^1.1.1",
"ics": "^3.12.0",
@@ -7284,18 +7283,6 @@
"tslib": "^2.0.3"
}
},
"node_modules/dotenv": {
"version": "17.4.2",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dotenv-expand": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz",

View File

@@ -31,7 +31,6 @@
"console-stamp": "^3.1.2",
"cron": "^4.4.0",
"delay": "^4.4.0",
"dotenv": "^17.4.2",
"ecstatic": "^4.1.4",
"he": "^1.1.1",
"ics": "^3.12.0",

View File

@@ -1,4 +1,8 @@
require('dotenv').config();
const fs = require('node:fs');
if (fs.existsSync('.env'))
process.loadEnvFile();
require('console-stamp')(console);
require('module-alias/register');