Replies: 1 comment 1 reply
-
@tsdexter I don't think DSG makes a subsequent call to your server. If I understand correctly, the Gatsby data layer that is generated during build is essentially kept live on the build server. This data layer is what you typically interact with when using I, too, am working on optimizing build times and since |
Beta Was this translation helpful? Give feedback.
-
I would like to use DSG to speed up build times however I'm confused about exactly how it works. When the page is being built with DSG does the build server go back to my WordPress GraphQL endpoint and fetch the data or does it just get it from the cached Gatsby data layer?
In other words, if I use DSG for every page, is
gatsby-source-wordpress
still going to call my graphql endpoint for all of the unnecessary site data during a full build? This step alone is often timing out my builds even on an enterprise wp engine server. I would ideally like to have something set up where even a full, clean build does not need to source every piece of data from wordpress...is this possible?Beta Was this translation helpful? Give feedback.
All reactions