pages.dev tunnel

I have a Cloudflare tunnel with ingress rules like:
- hostname: xyz.example.com
  path: ^/api/
  service: http://nodejs-server:8080
- hostname: xyz.example.com
  service: https://xyz.pages.dev
- service: http_status:404


essentially, i want /api/* traffic to go to the NodeJS server, then other traffic forwarded to Cloudflare pages.

is this not supported? or is there a right way to do it?
Was this page helpful?