Function isSanityFileUrl

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

    Parameters

    • url: string

      URL to test

    Returns boolean

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