Skip to content

Commit

Permalink
Merge pull request #57 from accurat/env-doc
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
marcofugaro authored Apr 10, 2019
2 parents 00d1ba2 + 6d9f846 commit bd3851e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ You can define your variables in those different places, **in order of importanc
SECRET=djah7s9ihdias7hdsaodhoas8hd
```
Use as:
```js
const endpoint = process.env.SERVER || www.example.com
```

**NOTE**: if you don't wish to have too many variables in the scripts section, you could also use a combo of the `.env.example` during CI and the `.env` file in local. If the `process.env.CI` is true, `.env.example` is used instead of `.env`.

#### Customizing Env Variables
Expand Down

0 comments on commit bd3851e

Please sign in to comment.