✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

How to get the URL for an image in a Slack thread.

2 replies
Last updated: Nov 8, 2023
Hello, everyone! how can I get the URL for this Image? 🙂 thank you.
Nov 8, 2023, 11:38 AM
should be something like
hero[]{heroImage[]{asset->{url}}}
Nov 8, 2023, 11:57 AM
The above assumes
hero
is an array which I think it's not, so I suggest:
heroSection->{
   hero{
    ...,
    "heroImageURL": heroImage->asset.url
   }

Nov 8, 2023, 12:37 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?