Skip to content

deriveBatchEventUrl

deriveBatchEventUrl(batchWriteUrl): string | undefined

Defined in: packages/client/src/event-lane.ts:310

The ingestion endpoint DERIVED from the mutation endpoint, for the ordinary deployment where one createSyncServer mounts both: …/api/mutations…/api/events. Returns undefined when the write URL is not in the canonical shape, so the caller can stay silent rather than guess (the lane is then only usable with an explicit batchEventUrl).

string

string | undefined