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

Remove check for ENVIROMENT #828

Open
wants to merge 2 commits into
base: master
from

Conversation

@JasonEtco
Copy link
Member

JasonEtco commented Aug 11, 2020

Description

👋 This removes the check for process.env.ENVIROMENT from gatsby-config.js. It currently has two problems:

  • I think this was intended to be NODE_ENV, the standard value for Node's environment setting.
  • dotenv doesn't need to be gated like this; if .env doesn't exist, it'll be a noop. This is fairly common practice, and avoids that extra check and eslint-disable comment.

Related Issues

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.