Workers and Pages do not work together

I followed this guide:

But have yet to manage to get it work. All the requests to workers end up being handled by Cloudflare Pages. For example:

My page is:
subdomain.example.com
My API endpoint is:
subdomain.example.com/api/*

When I removed the CNAME record used by subdomain.example.com that points to Cloudflare pages, the worker worked. But Cloudflare pages obviously did not work afterwards.

I followed this guide:

But have yet to manage to get it work. All the requests to workers end up being handled by Cloudflare Pages. For example:

My page is:
http://subdomain.example.com/

My API endpoint is:
http://subdomain.example.com/api/*

When I removed the CNAME record used by subdomain.example.com that points to Cloudflare pages, the worker worked. But Cloudflare pages obviously did not work afterwards.

Hi @doan.chuvan,

that is unfortunately a known bug with Pages and the Cloudflare Proxy. It’s being worked on, but the team doesn’t have an exact ETA at this time due to some intra-teams dependencies for the fix.

1 Like

Now the Cloud Pages is out of beta. Has the problem been fixed?

Yes, Workers can now run on top of Pages.

1 Like

If you have any more questions, feel free to join the below Discord server where you can also keep track of the latest announcements.

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