How to speed up Gatsby builds on Netlify

January 24, 2021

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.

A quick favor: was anything I wrote incorrect or misspelled, or do you still have questions? Please use this form to let me know or ask for help!