Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determining environment #97

Open
doublejosh opened this issue Jan 3, 2023 · 0 comments
Open

Determining environment #97

doublejosh opened this issue Jan 3, 2023 · 0 comments

Comments

@doublejosh
Copy link

doublejosh commented 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 a resolveEnv config option, which makes the plugin for flexible for various hosting/pipeline scenarios.

@doublejosh doublejosh changed the title Zero docs on how it determines environment Missing info on determining environment Jan 3, 2023
@doublejosh doublejosh changed the title Missing info on determining environment Determining environment Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant