Skip to content

Commit

Permalink
docs(Variables): Add a comment about variable expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
d-asensio committed Jul 5, 2021
1 parent 7bf92c3 commit a158ad1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ With `useDotenv: true` set in your `serverless.yml` file, framework automaticall

The framework looks for `.env` and `.env.{stage}` files in service directory and then tries to load them using `dotenv`. If `.env.{stage}` is found, `.env` will not be loaded. If stage is not explicitly defined, it defaults to `dev`.

### Variable expansion

It is possible to define environment variables as a combination of existing ones:

```env
BASE_URL=my.api.com
PROTOCOL=https
URL=$PROTOCOL/$BASE_URL
```

### Differences against `serverless-dotenv-plugin`

There are a few differences between above functionality and [serverless-dotenv-plugin](https://github.com/colynb/serverless-dotenv-plugin):
Expand Down

0 comments on commit a158ad1

Please sign in to comment.