Function: resolveImageUrl()
function resolveImageUrl(imageUrl, cdnUrl): string | null;Defined in: transforms/imageUrl.ts:13
Resolves an image URL.
- If it’s just a filename (e.g., “abc.jpg”), prepends the CDN base URL
- If it’s already a full URL, returns it as-is
- Handles null/undefined gracefully
Parameters
heading.anchorLabel| Parameter | Type |
|---|---|
imageUrl | string | null | undefined |
cdnUrl | string |
Returns
heading.anchorLabelstring | null