Avoid having to stop and start GatsbyJS development server to get changes from Builder.io

You can force gatsby to refetch by setting an env variable:

ENABLE_GATSBY_REFRESH_ENDPOINT=1

Then put your localhost to a public URL, suggest using something like ngrok

./ngrok http 8000 # or whatever port you're serving your gatsby dev on

Grab the resulting public URL then add it as a webhook (global if you’re using more than one model in your code)

In models page choose the model you want to edit. Then scroll down and choose “show advanced” then “edit webhooks.” and add a webhook pointing to your: https://placholder.ngrok.com/__refresh

You can also add it as a global webhook in your organization settings.

2 Likes