title: Gatsby - Build website for stage/development - which command should I use?
body: <p>How can I build/deploy a gatsby website for development environment? </p>
  
  <p>If you run gatsby build the environment variable is <strong>automatic set to production.</strong> </p>
  
  <p><strong>Use Case</strong>: I do want to deploy my website to services such as Netlify, etc, but I want to BUILD for STAGE environment.  Anyone know which command I can use for that or if I should replace the NODE_ENV in the gatsby build command? I want to deploy and deliver the staging website to the <strong>coworkers/users/customers,</strong> then they will be able to <strong>test</strong> and use it on the <strong>staging environment</strong>. (with all staging configuration). If you are developing a website for customers you might need to deploy a staging version for test/validation purposes. </p>
  
  <p>I know that gatsby/react internally have some different processing based on the environment, but I was wondering if it's possible to build and deploy a gatsby website for development/stage purposes using development variables configuration. </p>
  
  <p><strong>An example:</strong> I was using two plugins - gatsby-google-tag-manager and gatsby-plugin-facebook-pixel and realized that both configurations relies on NODE_ENV development or production and I currently can not build and deploy a website using development environment.</p>
  
  <p>Any thoughts on that?</p>