I've run into the same strange problem on two different hosting platforms, and I'm hoping someone here can explain it.

Cloudflare Pages

I host a pure static site on Cloudflare Pages. For about 3 months and 400+ deployments, it worked without any issues.

Then, somewhere past 500 deployments, an older deployment (around #430, if I remember correctly) became the production deployment and stayed that way. I tried:

  • Redeploying multiple times
  • Triggering fresh builds
  • Re-checking the production branch settings

Nothing fixed it. I found a Cloudflare Community thread describing the same symptom, but it had no response.

Moving to Vercel

I moved the project to Vercel. After 600+ deployments, it suddenly started serving an older version of my platform, the same pattern as before.

This time I immediately created a new project, moved over the environment variables and domains, and deleted the old project. It started working again right away.

What I know and don't know

  • Both projects had a very high deployment count (hundreds of deploys in a few months).
  • Both problems were fixed only by creating a fresh project.
  • I have no proof that the deployment count is the cause. It's just the one thing the two cases have in common.

I haven't found any documented limit that explains this, and the dashboards showed the latest deployments as successful.

Questions

  1. Has anyone else seen a platform serve an old deployment as production after hundreds of deploys?
  2. Is there a known limit or cleanup behavior (deployment history, build cache, edge cache) that could cause this?
  3. Is deleting and recreating the project the only fix? If you've found another one, please share it.

If you've hit something similar, or you work on either platform, I'd love to hear about it. And if it really is just me who keeps hitting these edge cases, I'd like to know that too. 😅