This can prove to be a challenge if one wants to use a CI/CD environment like, for example, a GitHub Action with Vercel CLI, because, without the git integration, the "git branch" options for any added domain becomes unavailable.
This is great and working as intended, except for the resulting produced deployment URL:
Beta branch deploys to tmcb-space-195ydjppl-tmcb.vercel.app
We wanted to make the beta branch deployments always deploy on beta.tmcb.space as seen in the first screenshot and we could make some code changes to do that.
The fastest way to do that is to make use of the Ignored Build Step feature and set it not to build anything:
exit 0 disables the build on Vercel
Does this get the job done? Do these minor hacks make it worth not waiting for the official feature to be implemented in Vercel Domains?
For reference, we searched Vercel GitHub issues and discussions for answers and found somewhat ambiguous results, which led us to monkey-patch the problem ourselves. Here are the links if you want to read more:
Has a huge collection of hats spanning 2 decades of experience in software engineering with a clear focus on company growth. Open or closed source, there is no problem not worth solving. Previosly at Snyk and OpenSauced