My current stack is Contentful as CMS, Gatsby which is hosted on Netlify.
My current stack is Contentful as CMS, Gatsby which is hosted on Netlify.
The current issue is that in some time (not always) when creating new pages in Contentful it’s not reflected in Gatsby.
In gatsby-node we are iterating over the pages we have in Contentful and use createPage API to create a new web page for it.
When creating new web pages, we can’t see that this page got created in Gatsby until we delete of the cache and trigger a new build.
A cache that always needs to be cleared is not a very helpful cache.
For our current environment.
We currently have the netlify-plugin-gatsby-cache installed in our Netlify env.
We also enabled the incremental build in Netlify using this command
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build