← Back
gatsby

Force a refresh of GraphQL data without restarting gatsby develop

A work in progress research. Not sure if it works:

package.json:

  "scripts": {
"dev": "ENABLE_GATSBY_REFRESH_ENDPOINT=true gatsby develop",
"refresh": "curl -X POST http://localhost:8000/__refresh",
},

Source: https://github.com/gatsbyjs/gatsby/issues/14395#issuecomment-558685843

🖖