Answers from the community

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
Should Sanity schema documents use .jsx/.tsx or only for dynamic schemas?3Oct 18, 2023
How to manually set _createdAt after document creation?4Oct 17, 2023
Open document in new pane from custom component with multiple types5Oct 16, 2023
Hide desk structure elements based on user role in Sanity v34Oct 14, 2023
How to use a custom image as an Icon in Sanity?4Oct 13, 2023
Issue with basic query in Sanity integration with Next.JS project4Oct 12, 2023
Adding Sanity to existing NextJS project vs new setup4Oct 12, 2023
How to visually group fields with a label in Sanity documents?3Oct 12, 2023
Sanity Navigation Empty on Vercel Deploy but Works in Dev - Network Error9Oct 10, 2023
Applying custom functions directly in GROQ to destructure data in Sanity.io.3Oct 10, 2023
How to extract year/hour from datetime fields in GROQ queries?6Oct 10, 2023
Conditional field validation based on boolean value in Sanity9Oct 10, 2023
Sanity schemas in Next.js frontend: necessary with headless CMS or redundant?11Oct 8, 2023
Query images used in document regardless of schema structure5Oct 8, 2023
GROQ: How to fetch all items except the first one using slice?3Oct 6, 2023
How to reuse schema sections across multiple schemas in Sanity?7Oct 6, 2023
How to create tree structure content in Sanity for Next.js?11Oct 6, 2023
resolveProductionUrl error: Cannot read properties of undefined (reading 'current')5Oct 6, 2023