Ben Borgers

How to speed up Gatsby builds on Netlify

November 17, 2020

I recently discovered that you can greatly improve the speed of Gatsby builds on Netlify, especially if you have a lot of images being optimized with gatsby-image, through the Netlify plugin Gatsby Cache.

Open your Netlify dashboard and click on the Plugins tab. Search for "Gatsby Cache" and click Install, then find your Gatsby site and install the plugin to that site.

This plugin will take effect on future builds, and it'll persist the Gatsby build cache between changes. This means that Gatsby will be able to intelligently save time, such as not re-optimizing images that haven't changed.

More blog posts

Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iā€™m working on!

Twitter ↗ RSS feed ↗