Custom domain with different paths for each repository

Hey there, I have a question regarding the hosting capabilities on Cloudflare Pages. Suppose I have two separate repositories, X and Y, and my intention is to host both under the same domain, such as your.domain.com. The structure I'm aiming for is to have repository X accessible at your.domain.com/previews/X and repository Y at your.domain.com/previews/Y. Does Cloudflare Pages support this type of configuration? Thanks in advance.
4 Replies
Cyb3r-Jak3
Cyb3r-Jak313mo ago
This isn't possible currently. You'd have to use a work to proxy the request to the pages project
Enze
EnzeOP13mo ago
Thanks for your reply. Are there any docs or guides on how I can achieve that?
Cyb3r-Jak3
Cyb3r-Jak313mo ago
Unfortunately, I'm not aware of any guides. Realistically it shouldn't be more than making a sub request to a different host based off the URL path
Enze
EnzeOP13mo ago
I see, thank you.
Want results from more Discord servers?
Add your server