Cloudflare Pages Http Route

We have a worker running in Cloudflare. We have registered a site(say secure-dev.example.com). We have added a route(secure-dev.example.com/demo) to invoke worker. It works fine.

We have also developed a Pages app. We are able to add the custom domain(or subdomain) like test.example.com to point this domain to pages. But we can’t find any way to invoke Pages app from some other route like (secure-dev.example.com/demo).

Is there any way?

You’d need to use a Worker on that route to fetch your Pages domain.

Workers (up until the recent Custom Domains feature) always operated on routes which were checked on every request where Pages is purely on a custom domain basis, paths aren’t considered.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.