Skip to content

Gatsby v5 graphiql missing ENABLE_GATSBY_REFRESH_ENDPOINT feature. #37002

@ZeldOcarina

Description

@ZeldOcarina

Preliminary Checks

Description

I've just upgraded to Gatsby v5 and graphiql seems not to have the ENABLE_GATSBY_REFRESH_ENDPOINT feature anywhere.

Reproduction Link

https://githubbox.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Create a new v5 starter
  2. Add to .env.development ENABLE_GATSBY_REFRESH_ENDPOINT
  3. Navigate to localhost:8000/__graphql and notice the refresh button has disappeared.

Expected Result

What is described here: https://www.gatsbyjs.com/docs/refreshing-content/

Additionally, the sourced content can also be refreshed with the “Refresh Data” button in the GraphiQL explorer. This button is only visible if ENABLE_GATSBY_REFRESH_ENDPOINT is set to true.

Actual Result

The button is missing:

image

Environment

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.0.1 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.19.2 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Firefox: 102.0.1
    Safari: 16.0
  npmGlobalPackages:
    gatsby-cli: 4.24.0

Config Flags

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.type: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions