gatsby-source-directus7 icon indicating copy to clipboard operation
gatsby-source-directus7 copied to clipboard

Rebuild if new data is added

Open visualcookie opened this issue 6 years ago • 1 comments
trafficstars

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.

visualcookie avatar Jun 27 '19 12:06 visualcookie

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 :)

Jonesus avatar Jun 27 '19 12:06 Jonesus