main
|
Last change
on this file since 2d1ec46 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
733 bytes
|
| Line | |
|---|
| 1 | // ../config.js accepts options via environment variables
|
|---|
| 2 | const options = {}
|
|---|
| 3 |
|
|---|
| 4 | if (process.env.DOTENV_CONFIG_ENCODING != null) {
|
|---|
| 5 | options.encoding = process.env.DOTENV_CONFIG_ENCODING
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | if (process.env.DOTENV_CONFIG_PATH != null) {
|
|---|
| 9 | options.path = process.env.DOTENV_CONFIG_PATH
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | if (process.env.DOTENV_CONFIG_QUIET != null) {
|
|---|
| 13 | options.quiet = process.env.DOTENV_CONFIG_QUIET
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | if (process.env.DOTENV_CONFIG_DEBUG != null) {
|
|---|
| 17 | options.debug = process.env.DOTENV_CONFIG_DEBUG
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | if (process.env.DOTENV_CONFIG_OVERRIDE != null) {
|
|---|
| 21 | options.override = process.env.DOTENV_CONFIG_OVERRIDE
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) {
|
|---|
| 25 | options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | module.exports = options
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.