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-Jak37mo ago
This isn't possible currently. You'd have to use a work to proxy the request to the pages project
Enze
Enze7mo ago
Thanks for your reply. Are there any docs or guides on how I can achieve that?
Cyb3r-Jak3
Cyb3r-Jak37mo 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
Enze7mo ago
I see, thank you.
Want results from more Discord servers?
Add your server
More Posts