Vercel not deploying latest GitHub commit (Next.js App Router) — what am I missing? #183763
Unanswered
paidterms
asked this question in
Programming Help
Replies: 1 comment
-
|
hi, @paidterms
Summary: Make sure Vercel is connected to the right repo and branch, pushes trigger deployments, and your project root and API structure are correct. Use Vercel’s dashboard to check deployed commit SHAs and manually redeploy if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
I’m building a Next.js App Router project (Stripe + Supabase) and I’m stuck on what feels like a basic but confusing deployment issue.
What I’m trying to achieve:
I want my production site on Vercel to always reflect the latest commit on my GitHub main branch. When I push code, Vercel should automatically build and deploy that exact commit.
What works:
The app works locally
API routes work locally
Stripe webhooks fire correctly locally
Git commits and pushes appear correctly on GitHub
The problem:
Vercel is not deploying the latest commit from GitHub.
Production is serving older code, and routes that exist locally (e.g. /api/version, new GET handlers) return 404 / 405 in production.
In Vercel:
The build logs don’t show the latest GitHub commit hash
The deployed version seems tied to an earlier commit
I’m not sure if Vercel is watching the wrong branch, wrong repo, or wrong project root
What I’m confused about:
Whether Vercel is actually linked to the correct GitHub repo + branch
Whether my App Router API routes are structured incorrectly for production
How to force Vercel to deploy a specific commit or resync with GitHub
What I’m hoping to understand:
How to confirm which branch + commit Vercel is deploying
Common reasons Vercel serves stale builds
The correct way to force a fresh production deployment from main
If anyone’s hit this before or can sanity-check my mental model, I’d really appreciate it.
Optional comment you can add (if people ask “what have you tried?”)
Manual redeploy from Vercel dashboard
Verified commits exist on GitHub
Confirmed local build works
Checked API route paths for App Router (app/api/**/route.ts)
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions