Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

If I'm not getting the 'Preview' option on sanity studio that probably means that I haven't setup previewmode correctly on my project right?

3 replies
Last updated: Oct 19, 2020
Hey, just a quick question. If I'm not getting the 'Preview' option on sanity studio that probably means that I haven't setup previewmode correctly on my project right?
Oct 19, 2020, 9:44 AM
Probably, you need to create a resolver function that takes a document and returns the URL, then register that function in sanity.json

https://www.sanity.io/docs/preview-content-on-site
Oct 19, 2020, 10:22 AM
Thanks šŸ˜›. I've done that but I'm most likely doing something wrong. Will try to get it working šŸ˜›
Oct 19, 2020, 10:23 AM
oof got it working. It was a mix of having a wrong projectid and a bit of difficulty of integrating the preview mode with Next.js
Oct 19, 2020, 10:59 AM

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?