We’ve just started testing deploy previews under a custom subdomain for our Netlify site (pupum-jesse-poc.netlify.app).
The perfect workflow would be:
- A GitHub PR is created (for example, with the branch
example-pr). - Netlify builds a deploy preview for that PR.
- The deploy preview is made available under a URL based on the branch (for example,
example-pr.dev.netlify.our-subdomain.com).
I have most of this working using automatic deploy subdomains. The one missing piece, though, is the branch-based URL. It seems like setting “Branch deploys” to “Deploy all branches pushed to the repository” should make this work, and I swear I’ve seen this work before, but no branch deploys are being created when I push new branches to the repository. Creating a PR from those branches doesn’t change that, though a numbered deploy preview is then created.
The only deploy preview URLs I’m seeing are like deploy-preview-1.dev.netlify.our-subdomain.com, which is less clear.
Ideally, branch deploys with branch-name-based URLs would be the only ones we got, but even just getting them working at all would be great.