Create env-options.js
This commit is contained in:
parent
dc649320f7
commit
af088b838f
1 changed files with 18 additions and 0 deletions
18
node_modules/dotenv/lib/env-options.js
generated
vendored
Normal file
18
node_modules/dotenv/lib/env-options.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/* @flow */
|
||||||
|
|
||||||
|
// ../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
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = options
|
Loading…
Reference in a new issue