mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-28 12:16:54 -05:00
Replace dotenv with Node env loader
This commit is contained in:
13
package-lock.json
generated
13
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
6
src/common/bootstrap.js
vendored
6
src/common/bootstrap.js
vendored
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user