Anders Kitson
Anders Kitson

Reputation: 1545

Metalsmith and Contenful Sync

I have been using the metalsmith contenful plugin. I am wondering if maybe I have the idea of static site generators wring, but what is the purpose of this if I have to run a build every time something is changed on contentful.

Is there a way to have metalsmith on my server and have a build issued anytime contenful is changed, or is this a bad idea.

What would be recommended for keeping a site in sync with contentful more than just accessing the database with a static site generator.

Upvotes: 1

Views: 384

Answers (1)

madtrick
madtrick

Reputation: 56

If you want to automatically keep in sync a static site built using content on Contentful your best option is to use webhooks.

Contentful provides webhooks which can be used for different types of events (publish, editions, etc.).

Upvotes: 1

Related Questions