DEV Community

Discussion on: GatsbyJs - Add environment variables

Collapse
 
lucaszapico profile image
LucasZapico

Hey, please double check before you post. This is incorrect and misleading, please correct or take it down as it just muddies the water for people. There is no GATSBY_ENV that overrides the environments set in gatsby develop and gatsby build. gatsby build sets the NODE_ENV to production internally and gatsby develop sets NODE_ENV to development. If you test something like "develop:bang": "set GATSBY_ENV=bang && gatsby develop" print or console.log the env variables you would see that the command you call aren't doing anything.