We are experiencing an issue where the following happens:
- Build and deploy Next.js static site (via
next export
) - Render build succeeds
- Site loads a blank page because the
index.html
file points to the JS bundles from the prior build (we manually compared the bundle signature from the logs).
Using the “clear build cache and deploy” option works temporarily, but we are seeing this issue intermittently throughout the day. For example, we cleared the cache and deployed at 10pm Wednesday, everything worked great all of Thursday, but then we randomly experienced this issue around 6pm on Thursday.
I suspect this is an issue between Render / Cloudflare and how new builds are cleared from the cache?
Similar issues to this have been raised here and here, but the only solution offered is the “clear build cache and deploy”, which does not fix the problem in our case.
Any help / insights on this appreciated!