From 423243843769e9499b5c7e9fa0f90a19a34c47b4 Mon Sep 17 00:00:00 2001 From: Jon Gear Date: Thu, 5 Apr 2018 21:37:19 -0500 Subject: [PATCH] add gatsby develop environment command --- docs/docs/environment-variables.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs/environment-variables.md b/docs/docs/environment-variables.md index 3893a428e01f4..8e1068ba98de0 100644 --- a/docs/docs/environment-variables.md +++ b/docs/docs/environment-variables.md @@ -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" @@ -115,7 +117,10 @@ module.exports = { } ] }; +``` +Local testing of staging is as simple as ``` - +ACTIVE_ENV=staging gatsby develop +```