Gatsby & WordPress – 5.2. Gatsby Node.js Structures

23/11/2019 by Jack Pritchard

In this video, we explore the Gatsby.node.js file that programmatically generates our Gatsby pages.

We separate each Post type into its own custom asynchronous NodeJS function which will query our internal schema and then map over the JSON results to create our pages.

Originally we did all of this in one large ugly file, at the end of the video we will have a structured file setup for our Gatsby environment which will make it easier to maintain and contribute towards.

Continue Reading 📚