Function parseAssetUrl

  • Parses a full Sanity asset URL into individual parts (type, project ID, dataset, id, extension, width, height)

    Parameters

    • url: string

      Full URL to parse into named parts

    Returns SanityAssetUrlParts

    Object of named properties

    If URL is invalid or not a Sanity asset URL