ServiceBindingUpstream
Defined in: src/core/types.ts:153
Forward to another Cloudflare Worker via a Service Binding.
The binding must be configured in the consumer’s wrangler.toml.
Properties
Section titled “Properties”rewritePath()?
Section titled “rewritePath()?”
optionalrewritePath: (path) =>string
Defined in: src/core/types.ts:158
Rewrite the path before forwarding to the bound service.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
service
Section titled “service”service:
string
Defined in: src/core/types.ts:156
Name of the Service Binding in wrangler.toml (e.g. "AUTH_SERVICE").
type:
"service-binding"
Defined in: src/core/types.ts:154