Hello,
I am experiencing a reproducible deployment-target issue on a Vercel Hobby project.
Project details:
- Project name:
fipi-desk-preview - Project ID:
prj_R8lOXkGLiSXS265uPj4AxukW4kEn - GitHub repository: private personal repository
- GitHub default branch:
main - Vercel Production Branch:
main - Test branch:
preview - Current active deployments: none
- Current active aliases: none
- Custom domains: none
Expected behavior:
- A CLI deployment without
--prodshould create a Preview deployment. - A GitHub deployment from the non-production branch
previewshould create a Preview deployment.
Actual behavior:
All three deployment methods were classified as Production.
Attempt 1 — Prebuilt CLI deployment
vercel deploy --prebuilt --target=preview --scope smux84s-projects
Deployment ID:
dpl_2LZUiKVaT46xwr79t9YK1nXJsewK
Result: production
Attempt 2 — Standard CLI deployment
vercel deploy --scope smux84s-projects
No --prod flag was used.
Deployment ID:
dpl_6r71yz92SES1XuUHz4BBJQENsa2Q
Result: production
Attempt 3 — GitHub deployment from a non-production branch
A commit was pushed to the branch:
preview
Commit:
93fc4b7
Deployment ID:
dpl_Bgiq1pCgEJW46KNgWd6TrBHE7S2r
The Vercel Activity Log recorded the commit from the preview branch as deployed “to production”.
All three deployments were immediately deleted.
Read-only diagnostics performed
The visible project configuration appears correct:
link.productionBranch:main- Production target: branch tracking
main - Preview target:
All unassigned git branches previewDeploymentsDisabled: not enabled- Git integration: enabled
- Correct GitHub repository connected
- No custom environments
- No branch matcher assigning
previewto Production - No local
VERCEL_*environment variables - No
vercel.json - No
vercel.ts - No
.vercelignore - No repository scripts using
--prod - No repository configuration forcing the Production target
- Preview environment variables target only Preview
- Vercel Authentication remains enabled
The project was initially created through an app integration. Vercel’s support assistant identified the related integration as:
cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp
The support assistant confirmed that the visible configuration is correct and suggested a possible stale or inconsistent internal project state, potentially involving a deprecated github.autoAlias setting or app-integration metadata that is not exposed through the standard API.
Questions
- Why is a branch other than
mainbeing deployed to Production? - Why is
--target=previewbeing ignored? - Can the project’s internal deployment target state be reset?
- Is disconnecting and reconnecting GitHub sufficient?
- Should the project be recreated by importing it directly from GitHub?
- Is there a hidden or deprecated
github.autoAliasconfiguration affecting this project?
I do not authorize or need another Production deployment for troubleshooting.
I can provide sanitized screenshots of:
- Production branch tracking set to
main - Preview set to all unassigned Git branches
- Git repository connection
- Activity Log showing
93fc4b7 in previewdeployed “to production” - Empty Deployments page
No credentials, environment-variable values, passwords or tokens are included.