Open jacqui opened 4 years ago
Seems simple enough to implement, this line is concerning though:
This means that changes from a supported CMS — Gatsby supports Contentful, Sanity, DatoCMS and CosmicJS at the time of writing with WordPress and Drupal support in alpha — Gatsby will only rebuild the parts of the site affected by the changed data.
Does that mean because we're using Google Docs, we won't be able to take advantage of this?
Looking into this today as well. I'll test out how and when pages get rebuilt using incremental builds.
Hrm... so the results are a little mixed.
On the plus side, the incremental build process is a bit faster:
11:21:15 AM: Finished processing build request in 2m35.906922196s
11:29:40 AM: Finished processing build request in 1m53.69436929s
It does, however, rebuild the entire site. I think further investigation is warranted here.
Looks like the google-docs importer plugin folks are going to work on a caching solution!
https://github.com/cedricdelpoux/gatsby-source-google-docs/issues/60
No updates yet on the google docs plugin cache, but maybe I should try the gatsby cache netlify plugin (https://app.netlify.com/teams/jacqui/plugins/netlify-plugin-gatsby-cache/install) again now that it's out of beta.
Hi @jacqui, it should work now! Please try and let me know
Handily enough Netlify emailed me with an actually useful tutorial on this very topic this morning:
https://www.netlify.com/blog/2020/04/23/enable-gatsby-incremental-builds-on-netlify/?utm_campaign=Gatsby+Builds+Promo+Email&utm_content=Gatsby+Builds+Promo+Email&utm_medium=email_action&utm_source=customer.io