You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no information about how this determines the environment and decides to be enabled, other than "the plugin checks in which environment your site is running." It's worth noting in the readme.
This won't work for me... since staging environments are also "production" builds.
Other plugins like gatsby-plugin-robots-txt include a resolveEnv config option, which makes the plugin for flexible for various hosting/pipeline scenarios.
The text was updated successfully, but these errors were encountered:
doublejosh
changed the title
Zero docs on how it determines environment
Missing info on determining environment
Jan 3, 2023
doublejosh
changed the title
Missing info on determining environment
Determining environment
Jan 3, 2023
There's no information about how this determines the environment and decides to be enabled, other than "the plugin checks in which environment your site is running." It's worth noting in the readme.
It's currently...
currentEnvironment = process.env.ENV || process.env.NODE_ENV || 'development'
This won't work for me... since staging environments are also "production" builds.
Other plugins like
gatsby-plugin-robots-txt
include aresolveEnv
config option, which makes the plugin for flexible for various hosting/pipeline scenarios.The text was updated successfully, but these errors were encountered: