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

fix(gatsby): Remove GATSBY_BUILD_STAGE & warn against ___NODE #33501

Merged
merged 7 commits into from Oct 13, 2021

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Oct 12, 2021

Description

  • Remove GATSBY_BUILD_STAGE environment variable
  • Throw warning when ___NODE convention is used
  • Remove TODO: In Gatsby v2, the NodeInput.id field is of type String, not ID. since decided to keep it

Preview:

image

Documentation

  • The removal of GATSBY_BUILD_STAGE will be added to migration guide after merged

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 12, 2021
@LekoArts LekoArts added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 12, 2021
@LekoArts LekoArts marked this pull request as ready for review October 12, 2021 11:21
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit

packages/gatsby/src/schema/infer/add-inferred-fields.js Outdated Show resolved Hide resolved
Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
@LekoArts LekoArts merged commit 775289f into master Oct 13, 2021
@LekoArts LekoArts deleted the random-todos branch October 13, 2021 14:35
d4v1d82 added a commit to d4v1d82/gatsby-plugin-loadable-components-ssr that referenced this pull request Oct 22, 2021
replace process.env.GATSBY_BUILD_STAGE with process.env.BUILD_STAGE
gatsbyjs/gatsby#33501
wardpeet added a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
…tsbyjs#33501)

Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
axe312ger pushed a commit that referenced this pull request Nov 9, 2021
…3501)

Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants