Gatsby-ghost-starter Changes not Rendering

Hi everyone, I’m currently trying to build a Gatsby front-end and Ghost CMS backend deployment locally (Mac OS). I’ve spun-up the ghost instance and I’ve also configured everything on the Gatsby side of things using instructions from here: GitHub - TryGhost/gatsby-starter-ghost: A starter template to build lightning fast websites with Ghost & Gatsby. Everything seems to be fine and the ghost CMS content is stored in GraphQL accordingly. However, whenever I make changes and save them on the Ghost backend, the changes don’t get propagated to the front-end until I restart the GatsbyJS service.

Is this what is expected or is there a way to ensure that the data is transferred to the graphQL DB and subsequently rendered on the front-end?

Steps to replicate the issue:

  1. ghost start
  2. gatsby new gatsby-starter-ghost GitHub - TryGhost/gatsby-starter-ghost: A starter template to build lightning fast websites with Ghost & Gatsby
  3. Update the ghost.json file: {
    “development”: {
    “apiUrl”: “http://localhost:2368”,
    “contentApiKey”: “”
    },
    “production”: {
    “apiUrl”: “http://localhost:2368”,
    “contentApiKey”: “”
    }
    }
  4. cd gatsby-starter-ghost
  5. gatsby develop

Thanks for your help!

I actually resolved this issue using the ENABLE_GATSBY_REFRESH_ENDPOINT=1 environment variable, then creating a webhook within Ghost to send a POST request to Gatsby at that endpoint which triggers a rebuild and subsequently updating Graph QL Data