Skip to content

Commit

Permalink
add gatsby develop environment command
Browse files Browse the repository at this point in the history
  • Loading branch information
jongear authored Apr 6, 2018
1 parent ff86028 commit 4232438
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Reserved environment variables:

For instance. If you would like to add a staging environment with a custom Google Analytics Tracking ID. You can add `.env.staging` at the root of your project with the following modification to your `gatsby-config.js`

### Example

```shell
# .env.staging
GATSBY_GA_TRACKING_ID="UA-1234567890"
Expand Down Expand Up @@ -115,7 +117,10 @@ module.exports = {
}
]
};
```

Local testing of staging is as simple as

```

ACTIVE_ENV=staging gatsby develop
```

0 comments on commit 4232438

Please sign in to comment.