I am trying to host documentation for my app on a path rather than on my subdomain. I thought I could accomplish this with cloudflare as follows:
In short, I want to use a worker to display my documentation site whenever a client goes to mydomain.io/docs* but goes to my main bubble application hosted at mydomain.io for all other requests.
Sadly, I canโt get this to work.
Things that do work:
- My bubble app is being proxied through cloudlfare
- The worker script runs as expected when invoked from its workers.dev url
- mydomain.io loads perfectly fine
However, when I visit mydomain.io/docs*, I get my bubbleโs apps 404 page instead of triggering my worker.
Can anyone tell me why this is happening? Is there a configuration step I am missing to trigger the worker from mydomain.io/docs*?