Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Issue with previewing content in Sanity Studio and identifying the cause of the problem.

7 replies
Last updated: Mar 10, 2024
https://www.sanity.io/docs/previewing-content-in-sanity-studio i dont understand, it says i only need to specify
productionUrl
to see a link but it doesnt work, is there anything i overlooked? also where is this screenshot from, i dont recognize the UI? https://cdn.sanity.io/images/3do82whm/next/f1fed3ad0957e36529ef5aa15580c84c11b104d5-720x212.png?w=720&h=212&fit=clip&auto=format
Mar 8, 2024, 9:56 AM
It looks like an old screenshot.
Mar 8, 2024, 12:16 PM
thanks! i just created a fresh project and followed the instructions and it worked, so i need to figure out which part of my current project is preventing this feature...
Mar 8, 2024, 1:14 PM
What’s not working about your current set up?
Mar 8, 2024, 5:04 PM
hey i just did a completely fresh install and there it works... so now doing some analysis to find out which piece of my curent setup broke it
Mar 9, 2024, 9:28 AM
user M
it seems to have to do with this bit from the docs:

  document: {
    // For singleton types, filter out actions that are not explicitly included
    // in the `singletonActions` list defined above
    actions: (input, context) =>
      singletonTypes.has(context.schemaType)
        ? input.filter(({ action }) => action && singletonActions.has(action))
        : input,
  },
Mar 10, 2024, 4:50 PM
NVM figured it out!
Mar 10, 2024, 10:21 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?