We’ve been experiencing various broken links for a gatsby site, but only for blog posts. We’re using
netlify-plugin-gatsby-cache and when looking at the logs at the end of the build, there’s always a section like this:
info Deleted pages: Deleted page: /blog/how-planning-can-improve-your-mental-health Deleted page: /blog/8-easy-productivity-tips-from-billionaires Deleted page: /blog/here-is-how-4-day-work-week-can-boost-productivity-microsoft-example Deleted page: /blog/7-techniques-to-measure-your-goal-progress Deleted page: /blog/8-effective-productivity-tips-of-the-ultra-successful Deleted page: /blog/your-best-guide-to-becoming-successful-factors-that-lead-to-a-failure Deleted page: /blog/time-management-vs-attention-management-procrastination Deleted page: /blog/6-powerful-rules-for-success Deleted page: /blog/how-to-switch-from-paper-planning-to-digital Deleted page: /blog/4-productivity-hacks-to-make-you-more-successful Deleted page: /blog/your-ultimate-guide-to-setting-smart-goals Deleted page: /blog/7-elon-musk-productivity-tips-and-advice Deleted page: /blog/7-reasons-to-combine-paper-and-digital-planners Deleted page: /blog/ten-tips-to-plan-a-personalized-agenda Deleted page: /blog/15-ways-to-save-money-living-on-a-tight-budget Deleted page: /blog/6-tips-to-manage-procrastination-effectively Deleted page: /blog/how-to-form-a-new-habit Deleted page: /blog/is-now-the-best-time-to-start-a-side-hustle
However, for each build, this list is seemingly random. Note: all blog pages are coming from Prismic and are fully published. If I run two builds back-to-back, each build will have a separate list of deleted pages, each leading to a 404 page.
I’ve also logged each page handle and confirmed that they are all coming through from Prismic in
gatsby-node.js when generating an array of paths to build pages from. Also not receiving any errors from page-level graphql exports during the HTML render process.
Any ideas what may be causing this or how to troubleshoot it?