commit
This commit is contained in:
parent
5c93e9d8f7
commit
0afd108a82
20 changed files with 2096 additions and 19 deletions
20
node_modules/dotenv/lib/env-options.js
generated
vendored
Normal file
20
node_modules/dotenv/lib/env-options.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// ../config.js accepts options via environment variables
|
||||
const options = {}
|
||||
|
||||
if (process.env.DOTENV_CONFIG_ENCODING != null) {
|
||||
options.encoding = process.env.DOTENV_CONFIG_ENCODING
|
||||
}
|
||||
|
||||
if (process.env.DOTENV_CONFIG_PATH != null) {
|
||||
options.path = process.env.DOTENV_CONFIG_PATH
|
||||
}
|
||||
|
||||
if (process.env.DOTENV_CONFIG_DEBUG != null) {
|
||||
options.debug = process.env.DOTENV_CONFIG_DEBUG
|
||||
}
|
||||
|
||||
if (process.env.DOTENV_CONFIG_OVERRIDE != null) {
|
||||
options.override = process.env.DOTENV_CONFIG_OVERRIDE
|
||||
}
|
||||
|
||||
module.exports = options
|
Loading…
Add table
Add a link
Reference in a new issue