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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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_ENVthat overrides the environments set ingatsby developandgatsby build.gatsby buildsets theNODE_ENVto production internally andgatsby developsetsNODE_ENVto 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.