Function isSanityImageUrl

  • Checks whether or not a given URL is a valid Sanity image asset URL

    Parameters

    • url: string

      URL to test

    Returns boolean

    True if url is a valid Sanity image asset URL, false otherwise