Questions tagged [sanity]

Sanity is a structured content platform and API that also offers an open source, React-based Studio that functions as like a headless CMS on top of the Sanity APIs.

Sanity treats content as structured data and makes it easily available over an API. The collaborative editor, called the Content Studio, is a fully customizable, client-side web application. Documentation here.

833 questions
-1
votes
1 answer

How to remove GraphQL fields according to other fields, in Gatsby?

I have a page query that returns a video playlist. Some videos have 'public' set to true, some false. For the videos that have their public field set to false, I do not want to include the URL of that video in the payload that Gatsby sends to the…
André Casal
  • 1,012
  • 1
  • 11
  • 25
-1
votes
2 answers

how to create code for sanity testing auto screen capture?

Fast screenshot How to easily take screenshot of my screen in windows 10? I would like to have option to select a part of my screen to take the screenshot.
-2
votes
1 answer

Next js with sanity

I have a next js website for my client and now I added sanity for content management. It’s working fine but it takes a couple of seconds to fetch data and show it on the screen. Before sanity I was using hardcoded data and of course it was working…
Marty
  • 21
  • 2
-2
votes
1 answer

Unhandled - error Encountered an unhandled error in this Studio. Error When I started the Sanity Start. I got this error

TypeError: Cannot read properties of null (reading 'jsonType') at validateNonObjectFieldsProp (/static/js/app.bundle.js:170029:16) at _default (/static/js/app.bundle.js:169997:155) at visitors.reduce._objectSpread._problems…
-4
votes
1 answer

How to fetch data from Sanity to React?

I have trouble understanding on how to fetch my data from sanity. I have read the documentation but still i'm confused. I tried just logging the data to the console but it gives me an error like, "No 'Access-Control-Allow-Origin' header is present…
Sev
  • 31
  • 1
  • 8
1 2 3
55
56