Gatsby & WordPress - 3.4. - Programmatically Creating Pages and Posts
Hey! This post's a little over two years old now, so some of what's here might be out of date. Still worth a read, but if anything really matters to you, it's worth double-checking against a newer source too.
Manually building each page in Gatsby is not only inefficient but impossible to maintain in a client project.
Instead, we will look at how we can programmatically generate pages using the createPages API that Gatsby provides us.