@thinkmill/devops-env-vars
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@thinkmill/devops-env-vars", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Helper functions that encapsulate our treatment of environment vars for KeystoneJS apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,6 +6,7 @@ Devops: Environment Variables | ||
## Usage | ||
The partial code block below is taken from `config.js` in the `admyt-platform` codebase. | ||
It demonstrates how this library should be used in a modern KeystoneJS app. | ||
The code block below demonstrates how this library should be used in a modern KeystoneJS app. | ||
It's based on the [`config.js` in the `admyt-platform` codebase](https://github.com/Thinkmill/admyt-platform/blob/develop/config.js). | ||
@@ -145,2 +146,3 @@ ```javascript | ||
## `dotenv.config(..)` | ||
@@ -166,2 +168,3 @@ | ||
## `envLib.mergeConfig(APP_ENV, flags, process.env, rules)` | ||
@@ -191,2 +194,3 @@ | ||
## Other Config Values | ||
@@ -225,2 +229,5 @@ | ||
Since both these approaches add values directly to the config object (without using `mergeConfig()`), | ||
values set in this way can't be overridden/set without code changes. | ||
#### blueshyft Apps | ||
@@ -259,6 +266,3 @@ | ||
Since both these approaches add values directly to the config object (without using `mergeConfig()`), | ||
values set in this way can't be overridden/set without code changes. | ||
### Feature Flags | ||
@@ -280,2 +284,3 @@ | ||
## Exporting the Values | ||
@@ -282,0 +287,0 @@ |
19915
290