Build domains vs branch domain
I just had a quick question/confirmation I hope you'd be able to be able to help with.
When deploying our pages applications to a preview branch, we receive a URL like abc123.myapp.pages.dev, where the prefix is a sort of has provided by cloudflare. What I've noticed is that these prefix's seem to be interchangeable with the branch name that was passed in. for example if i have a branch of "mybranch" everytime I deploy to this branch, i can access that preview via "mybranch.myapp.pages.dev". Am I correct in this and is it trustworthy to use that or for some reason and should not use these and only use the build hash that has been given to me via the build (abc123)? as im not sure this is documented much so wasnt sure if you'd recommend using the hash instead of the branch.
2 Replies
Branch aliases are documented and yea can be used - https://developers.cloudflare.com/pages/configuration/preview-deployments/#preview-aliases
ah perfect, thankyou!