I noticed your issue is related to these recent discussions:
- Staging Environment not Autodeploying
- Deploy hook issue with multiple Vercel environments on same branch
All these cases are hitting the same core limitation: Vercel prevents multiple environments from automatically deploying from the same branch. This is designed to prevent deployment conflicts, but it can be challenging when you need different domains/environments (like your DomainA and DomainB) to deploy from the same branch.
I’ve shared similar solutions in the other threads, but here are some potential solutions:
-
Use separate branches as this gives you the cleanest separation of concerns.
preview
branch for DomainA deploymentsdev
branch for DomainB deployments
-
Use Vercel’s promotion workflow. This maintains your desired staging → production flow.
- Deploy to DomainA first
- Use Vercel’s promotion feature to promote to DomainB when ready
-
Set up a custom CI/CD pipeline:
- Keep your current branch structure
- Use GitHub Actions to trigger appropriate deploy hooks in sequence
This gives you the most control over the deployment process.
Let us know how you get on!