How to configure multiple Edge Delivery sites from different branches of the same GitHub repository with custom domains?
Hi everyone,
I'm currently working with Adobe Edge Delivery Services and I have a question regarding site configuration using multiple branches from the same GitHub repository.
We have the following setup:
- One GitHub repository (e.g., https://github.com/org/project-storefront)
- Several branches (main, pre-launch, dev)
- Different custom domains that need to be assigned to each environment (e.g., www.site.com, stg.site.com, dev.site.com)
Our goal is to:
Create a separate Edge Delivery site for each branch and associate a different custom domain with each site.
However, when creating a new site in Cloud Manager, it seems the tool automatically links to the main branch, and we don’t see any UI option to specify another branch. As a result, even with different GitHub repositories or site names, the preview and production URLs resolve to the same main--repo--org.hlx.page endpoint.
My questions:
- Is there a way to explicitly select the branch when creating an Edge Delivery site in Cloud Manager?
- If not, what is the correct way to manage multiple environments (dev, staging, production) with custom domains, all coming from branches of the same repo?
- Are there any YAML or configuration-level options that can be used to force the branch reference?
Any official guidance or examples would be greatly appreciated.
Thanks!