Strips the CDN URL and query params from a URL, eg:
https://cdn.sanity.io/images/project/dataset/filename-200x200.jpg?foo=bar →
images/project/dataset/filename-200x200.jpg
Returns
The path of a CDN URL
tryGetUrlPath(...args): undefined | string
Parameters
Rest...args: [url: string]
Returns undefined | string
Returns undefined instead of throwing if a value cannot be resolved
Strips the CDN URL and query params from a URL, eg:
https://cdn.sanity.io/images/project/dataset/filename-200x200.jpg?foo=bar
→images/project/dataset/filename-200x200.jpg
Returns
The path of a CDN URL