Skip to content

CfWorkerRoute

Defined in: workers/workers.ts:6

A route that sends matching requests to a Worker.

id: string

Defined in: workers/workers.ts:8

The route’s identifier.


pattern: string

Defined in: workers/workers.ts:10

The URL pattern the route matches.


script: string | null

Defined in: workers/workers.ts:12

The name of the Worker script, or null when the route is bound to none.