On Azure Static Web Apps, you get 10 staging environments with a pro plan, and you can set these up to have stable URLs per-branch.
I've got a few branches like this (eg. stage
, dev
, etc.) that I'd like to be subdomains on our default domain. Meaning, builds on branch stage
would go to stage.foo.com
and so on. I've added a few of them as custom domains, but these all go to the main
/production branch. I can't figure out how to point them to the specific staging branch.
I thought one option might be to set the CNAME of the subdomain to the stable branch domain, like:
CNAME stage foo-stage.1.centralus.azurestaticapps.net
But I can't find mention of this anywhere and I worry that it wouldn't validate the domain this way. Is there a way to do this?