Company
Date Published
Author
Ondrej Polesny
Word count
930
Language
English
Hacker News points
None

Summary

In 2018, the Kentico Kontent DevRel team began developing a source plugin for Gatsby, a popular static site generator, to address the challenge of increasing build times for large sites. As automatic builds could be triggered by minor content changes, developers and content creators faced long waiting periods to preview updates. The introduction of Gatsby Cloud's Incremental Builds with real-time previews offered a solution, but required significant CMS adjustments, including GraphQL schema integration and webhook notifications. Ondrej Chrastina, a developer advocate at Kentico, spearheaded the creation of a new Gatsby source plugin with a focus on performance, reducing build times from 38 minutes to 7 minutes for a site with 30,000 nodes. This was achieved by minimizing dependencies, simplifying data contracts, and using TypeScript for type safety. The enhancements made Kentico Kontent the fastest data source for Gatsby, earning recognition from the static site benchmarking service, Willit.build.