Skip to content

Function: locationHintFor() ​

ts
function locationHintFor(request): DurableObjectLocationHint | undefined;

Defined in: server/gateway.ts:194

The Durable Object location hint closest to where a request came from, worked out from Cloudflare's request.cf. Undefined when that is missing, as it is in local development.

Parameters ​

ParameterType
requestRequest

Returns ​

DurableObjectLocationHint | undefined

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.