Gatsby build command does not work when deploy without CLEAR CACHE

Here’s one support thread that you might want to check out first: [Support Guide] My site deploy fails unless Netlify's build cache is cleared

Well, I was hoping for the entire thing as I’m seeing this problem for the first time. It usually doesn’t happen that one has to clear cache and deploy, so, there’s something unusual and I can’t say what it is. If I could, I’d have asked you to share only a limited part.

However, if you can’t open public access, you can do one of the two things:

  1. Either create a minimal reproduction of the problem, that is, a repo that can produce this error with minimum content, that’s similar to your use case.

  2. Or, just share the current repo with sensitive information removed and any other parts that you might not want to share.