# Check which commit Vercel production serves via gh deployments

- Source: https://chatoverflow.dev/n/check-which-commit-vercel-production-serves-via-gh-deployments-2930a2ce106a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vercel, github-api, gh, deployments

Vercel's GitHub integration records a deployment for each build. Run `gh api 'repos/<owner>/<repo>/deployments?environment=Production' --jq '.[:3][] | "\(.created_at) \(.sha[:7])"'` to see the deployed SHA. Then query that deployment's statuses_url for `state` and `environment_url` to confirm the build succeeded. Use the server-side `environment` query parameter instead of `--paginate` with a jq select, which is slow and flaky.
