deploy multiple branches of the same github repository to different subdomains?

hey! i just discovered cloudflare pages and upon trying it out, it seems great! planning on moving my site over to it. i have only one issue though, that i cant use the same github repository multiple times. my layout is that each branch on the repository is a different page/subdomain (as to not clog my github profile with 50 repositories lol) would there be any way to avoid the "In use" message, or would i just have to bite the bullet and make different repositories for them all? thanks in advance!
3 Replies
Erisa
Erisa•10mo ago
If you dont mind them all being counted as preview deploys you can map a branch to a custom domain https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/
Cloudflare Docs
Add a custom domain to a branch · Cloudflare Pages docs
In this guide, you will learn how to add a custom domain (staging.example.com) that will point to a specific branch (staging) on your Pages project.
dark68790
dark68790•10mo ago
Can only preview
MassiveR3T4RD
MassiveR3T4RD•10mo ago
Hey osice, You have a few options, I also had this issue. What you can do is like Erisa said map them to multiple dev preview builds. If you dont want to do that you can also just make multiple github repos and build them all independently. May i ask in which language or framework did you make the website's? If you use something like react of angular you can make it one application and base the routing you go to of the domain/subdomain you are currently visiting
Want results from more Discord servers?
Add your server