We’re running into a problem where Vercel keeps deploying an old commit (d3ca9c9) instead of our most recent code. Even though we’ve pushed several updates to GitHub, the deployment always reverts back to this outdated version.
We’ve already tried a few things to fix it:
• Updated the vercel.json config
• Removed the vercel.json entirely to let Vercel auto-detect the settings
• Disconnected and reconnected the GitHub repo
• Manually set build commands
Current Status
• The code in our GitHub repo is up to date (we’ve confirmed this, e.g. the “Beta” label is in Navbar.tsx)
• Vercel still insists on deploying the old version
Vercel is stuck deploying from an old commit instead of the latest on the main branch.
What we’ve already tried:
• Disconnecting and reconnecting the GitHub integration
• Changing build settings
• Clearing the cache and redeploying
Why might Vercel be stuck on that specific old commit? Is there a way to force it to pull and deploy from the latest commit on main? Could there be any cached configuration or metadata on their end that needs to be cleared?
We’re experiencing a deployment issue where our React application appears to be serving stale content, specifically a hardcoded timestamp “BETA v3 2025-04-02T12:31:24.660Z” in our navbar, despite multiple deployments with updated code.
Steps Taken:
Made multiple code changes to the Beta label in our Navbar component
Updated Vercel configuration settings
Deleted and recreated the Vercel project
Disabled build optimizations and minification
Added explicit build timestamps and random BUILD_IDs to verify new deployments
Updated cache control headers
Current Behavior:
The site consistently shows an old timestamp “BETA v3 2025-04-02T12:31:24.660Z”
New deployments don’t reflect code changes
The issue persists across different browsers and with cache disabled
The issue remains even after recreating the Vercel project
Expected Behavior:
The Beta label should show a dynamic timestamp that updates every second
Each new deployment should show a different BUILD_ID
Changes to the codebase should be reflected in new deployments
Repository Details:
Framework: Vite + React
Build Command: npm run build
Output Directory: dist
Main Branch: main
Questions:
Is there a caching layer or build optimization that’s preventing new deployments from being served?
Are there any known issues with Vite builds and static content being cached?
How can we verify that new deployments are actually serving fresh builds?
I ask cursor to deploy a new obvious change : Changed the navbar background to purple Added a large “ TEST VERSION ” text. Made the logo white (inverted)
It pushes the changes to GitHub and deployed them on Vercel, but when I click the link, the website still appears unchanged.