Fetch Data from the Unsplash API and Render Using DSG
Learn how to use Gatsby’s latest page rendering method DSG (Deferred Static Generation) to defer the creation of pages and keep your build times super fast! ⚡

Learn how to use Gatsby’s latest page rendering method DSG (Deferred Static Generation) to defer the creation of pages and keep your build times super fast! ⚡
As I’m sure you know, Gatsby is absolutely brills for statically generating web pages using any type of data from any kind of data source. In this post I’ll be explaining how to fetch data from the New York Times Archive API and using two of Gatsby’s built in methods to add the data to Gatsby’s global data layer.
As you may have heard, the latest release of Gatsby, Gatsby 4 now supports SSR (Server Side Rendering). 🥳
Data is hard right? I think so too, and with Gatsby there’s more than one way to boil that egg so in this series of blog posts I plan to walk you through the various methods you can use and explain ways you might like to use them.