Skip to content

Commit ca97e4a

Browse files
update to match new behavior
1 parent 1b24b60 commit ca97e4a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/developers/components/built-in.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ loadEnv:
7878
files: './.env'
7979
```
8080

81+
This component matches the default behavior of dotenv where existing variables take precedence. Specify the `override` option in order to override existing environment variables assigned to `process.env`:
82+
83+
```yaml
84+
loadEnv:
85+
files: './.env'
86+
override: true
87+
```
88+
8189
> Important: Harper is a single process application. Environment variables are loaded onto `process.env` and will be shared throughout all Harper components. This means environment variables loaded by one component will be available on other components (as long as the components are loaded in the correct order).
8290

8391
<!-- ## login -->

0 commit comments

Comments
 (0)