Skip to content

Function: isUploadcareDomain() ​

ts
function isUploadcareDomain(url): boolean;

Defined in: domain.ts:41

Whether the host is operated by Uploadcare (not a custom CNAME).

Parameters ​

ParameterType
urlstring

Returns ​

boolean

See ​

https://uploadcare.com/docs/delivery/cdn/

Example ​

ts
isUploadcareDomain('https://cdn.example.com') // → false