Host documentation at a /docs subpath using Cloudflare Workers
Workers & Pages > Create application > Create worker
Settings > Triggers > Add Custom Domain
domain.com
and www.domain.com
versionsEdit Code
and paste the following script:[SUBDOMAIN]
and [YOUR_DOMAIN]
in DOCS_URL
and CUSTOM_URL
with your valuesDeploy
(changes may take a few hours to propagate)