gatsby-source-directus7
gatsby-source-directus7 copied to clipboard
Rebuild if new data is added
Hey.
Is there a possibility to rebuild the Gatsby site if there is new content? For example I have a collection for Team where the team in our agency will be added. Now if a new teammate has been added, the site does not automatically update, I always have to rebuild the Gatsby site by myself.
Maybe there is a webhook of some kind hidden, which I have not yet seen.
Hi!
This is a feature that should be handled via Directus, as it is the only entity that knows a change has been made. I have toyed around with the idea of automatic rebuilds for some of my own projects, but haven't gotten to implementing any yet. I suggest you take a look at Directus's docs for webhooks and depending on your server configurations implement some kind of POST request listener that gets triggered to execute a build when receiving a message from Directus :)