How to Add Preview (Analyse) To A Singleton Document
S.document(), that can get views.
S.listItem()
.title("FAQ")
.icon(MdQuestionAnswer)
.child(
S.document()
.schemaType("faq")
.documentId("faq")
.views([
S.view.form(),
S.view.component(NoProjectPagePreview).title("Norwegian Page"),
])
),Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.