sanity-io/image-url

Add method to include originalFilename (or custom file name) in URL for SEO

Opened this issue ยท 3 comments

Sanity supports preserving an image's original file name (or including a custom file name) by including it after the hashed name, but before, parameters with this format:
https://cdn.sanity.io/images/{project-id}/{dataset}/{hashed-name}/{originalFilename}?params..

Without that, it's the hashed name that gets indexed by search engines, instead of a descriptive file name that could get the image to show up in searches for it.

image-url would become much more useful for projects that need SEOd images if it were easy to include the original file name or a custom file name with a url builder method.

๐Ÿ‘€

๐Ÿ‘€

๐Ÿ‘€