Cloudflare for SaaS / Cloudflare Pages
I've been testing out the different Cloudflare offerings to fit the service we're trying to create.
Essentially we have one SvelteKit repo that we want to serve multiple domains. We check the Host header to serve content accordingly.
A few issues:
- There appears to be a limit for how many domains you can add to a CF Pages project.
- A single repository cannot be tied to multiple CF Pages projects
I've tested moving SvelteKit to use
adapter-cloudflare-workers
and this appears to work alongside Custom Hostnames (Cloudflare for SaaS), but it feels like there's quite a bit of config to go through and is a bit "hacky". There's also talk of SvelteKit deprecating this adapter at some point which has me nervous.
I simply want one project / one repository to serve many domains. Am I missing anything here? Any suggestions?0 Replies