Proxy from cf pages to worker api

For Workes & Pages, what is the name of the domain?

https://api.adam-nyberg.workers.dev/

What is the error number?

no error

What is the issue or error you’re encountering

what page rule to use for proxy from pages to worker api

What are the steps to reproduce the issue?

  1. set up a static website on pages on domain foo.app
  2. set up worker on assigned https://api.foo.workers.dev/
  3. trying to proxy all requests from foo.app/api to api.foo.workers.dev/

Is there a way to achieve that?