1 | /* @flow */
|
2 |
|
3 | // ../config.js accepts options via environment variables
|
4 | const options = {}
|
5 |
|
6 | if (process.env.DOTENV_CONFIG_ENCODING != null) {
|
7 | options.encoding = process.env.DOTENV_CONFIG_ENCODING
|
8 | }
|
9 |
|
10 | if (process.env.DOTENV_CONFIG_PATH != null) {
|
11 | options.path = process.env.DOTENV_CONFIG_PATH
|
12 | }
|
13 |
|
14 | if (process.env.DOTENV_CONFIG_DEBUG != null) {
|
15 | options.debug = process.env.DOTENV_CONFIG_DEBUG
|
16 | }
|
17 |
|
18 | module.exports = options
|