Function: serializeProxyUrl()
ts
function serializeProxyUrl(input): string;Defined in: serialize.ts:113
Builds a delivery proxy url for a remote source — the write-side counterpart of parseProxyUrl. The source url is embedded verbatim and trails the operations, so it carries its own query string.
Parameters
| Parameter | Type |
|---|---|
input | ProxyUrlInput |
Returns
string
See
https://uploadcare.com/docs/delivery/proxy/
Example
ts
serializeProxyUrl({ cdnBase: 'https://pubkey.ucr.io', sourceUrl: 'https://example.com/a.jpg' })
// → https://pubkey.ucr.io/https://example.com/a.jpg