Your PR builds locally, but Vercel comments that the Git author must be a member of the project's team. This access check can stop a preview before any build runs, so code changes and agent rebuilds won't fix it. Start with the deployment's exact message and commit, then check the author's account and the team.

Confirm which gate failed
Open the PR's deployment status and the Vercel bot comment. Record the Vercel project and team, the head commit, the GitHub account Vercel names, and whether a build log exists. A passing GitHub check can sit beside a blocked deployment that never created a Preview. A local build shows the code builds; it doesn't give the author access to a Vercel team.
| Evidence | What it means | Next check |
|---|---|---|
| Team access or author membership message before build logs | Vercel is checking who may deploy this commit | Git author, linked Vercel login, destination team |
| Build log shows a compiler or dependency error | The deployment passed the access gate and tried to build | First actionable build error and project settings |
| Preview URL exists but a page or request fails | The deployment completed; a runtime path fails | Browser request, function logs, backend target |
Match the commit author to the right Vercel account
For a private repository in a GitHub organization connected to a Vercel Pro team, the commit author must belong to the team that owns the project. Vercel links the author to a Vercel user through Login Connections, then checks membership. Ask the contributor to confirm their commit's GitHub account is connected to the right Vercel account. A GitHub collaborator isn't automatically a Vercel team member.
- The owner's working deployments don't prove contributors can deploy.
- Check repository visibility, organization and Pro or Hobby plan before applying a plan rule.
- Never rewrite history to impersonate another author.
Let the project owner resolve access
If the contributor's Vercel account has the right Git connection, the team's settings may add them or need a team Owner to approve a request. Without an account, they create one and link the Git provider. On Hobby teams, private organization repositories can't deploy at all, so the owner decides whether a Pro team fits. These are owner decisions, not code changes. Don't weaken deployment protection or make the repository public to clear a preview.
- For a fork authorization prompt on a public repository, use Vercel's fork approval path.
- Keep invite links and team details out of agent prompts.
Retest the same PR head
Once access is fixed, check for a new deployment of the same commit. If none appears, the owner can redeploy that Git reference from Vercel instead of you pushing a throwaway commit. Test the Preview page and its main user path, then compare the PR head, deployment commit and checks. The build can still fail later; the broader Preview guide covers that.
- Run one real smoke test on the deployed page.
- Keep local and hosted build results as separate evidence.
Copyable resources
Share account identifiers only with the project owner through an approved channel.
PR and blocked head commit: [ ]
Vercel project and owning team: [ ]
Exact deployment message: [ ]
Did a build start? [yes/no/unknown]
Commit author GitHub account named by Vercel: [ ]
Matching Vercel login connection confirmed: [yes/no/unknown]
Team plan and repo visibility checked by owner: [ ]
Access request or owner decision: [ ]
Retried deployment commit and result: [ ]
Preview URL and smoke-test result: [ ]Frequently asked questions
Why does Vercel reject my PR when pnpm build passes locally?
The access check can run before Vercel builds. A local build tests your code on your machine; it doesn't prove the commit author can deploy to the connected Vercel team.
Does GitHub repo access grant Vercel team access?
No. For private organization repositories, Vercel checks the author's linked login against the team that owns the project.
Can I fix this by asking the coding agent to change vercel.json?
No. Team membership is an account and access issue. Check the author, linked account, plan and team; edit build configuration only if a later build log shows a configuration error.
Will approval of team access automatically deploy the blocked commit?
Check whether a new deployment appears and which commit it uses. If none appears, the owner can use Vercel's Create Deployment action with the intended Git reference.