Skip to content

Routing

oc run activates a deployment on the running platform, then prints that Worker's default platform_path URL (platform origin + path prefix). Default origin: http://127.0.0.1:8787.

sh
bun run oc run --config examples/hello-worker/open-compute.json --ocd "$PWD/target/debug/ocd"
# Worker is serving at http://127.0.0.1:8787/<path>

HTTP requests that hit the path bound to the Worker are handled by fetch. Static Assets HTML trailing-slash / SPA / Worker-first routing concepts match Cloudflare Static Assets routing; see Static Assets.

Compatibility

TopicCloudflareopen-compute
HTTP on the bound path is handled by fetchYesYes
Static Assets HTML trailing-slash / SPA / Worker-firstYesYes — Static Assets
Custom DomainsYesNot provided
workers.devYesNot provided
Cloudflare zone Routes / Page RulesYesNot provided
routes / workers_dev in the project fileYesNot allowed
Preview URL*.workers.dev / Cloudflare previewLocal URL printed by oc run
Deployment and route authorityCloudflare control planeLocal SQLite and one supervised runtime generation