Gatsby + Kirby: cache / crawl content

Has anyone coupled Gatsby with Kirby?
I’m having issues figuring out how to let know Gatsby that there have been content update so it can rebuild it self.
There’s a plugin for WP and I’ve been looking into Netlify, but really would like to stick to kirby.

you could use the panel hooks to

  • trigger a bash script via php exec or
  • create a file flagging the required rebuild (an remove it at end of gatsby script)