Yes, you can use Cloudflare Workers with Webstudio-hosted sites. Set your main domain's CNAME to 'proxied' in Cloudflare to enable Workers, while keeping subdomain CNAMEs (like those pointing to Webstudio) as 'DNS only'. This allows you to reverse-proxy different subdomains or paths through your Worker without creating double-proxy issues.
Patterns:
- Main domain proxied -> Worker routes traffic to a Webstudio project subdomain
- Worker maps /blog or /app path segments to a Webstudio project
- Avoid chaining (nesting) a proxied CNAME behind another proxied CNAME
Only the domain terminating at the Worker should be orange-cloud (proxied); project CNAMEs stay DNS-only.