Guardrails
Rules every page passes before it publishes
The schema decides what an editor can publish. Its limits are set next to the design, so copy that fits the Studio also fits the page.
Try to break a ruleTry to break a rule
A hero with the same rules and messages the Studio uses. The preview changes only when every field passes and you publish.
Live on the page
Guardrails
Rules every page passes before it publishes
Change any field. The Studio runs these same checks before an editor can publish.
The page changes only when every field passes and you publish.
What the Studio checks
Required fields
A section without a heading cannot be published.
Length limits
Headings stop at 80 characters. Page descriptions for search run 70 to 160 characters.
Allowed sections
A page accepts only the section types the developers allow. Nothing else shows up in the Add menu.
Link formats
A link is a path on this site or an https:// address. Anything else is turned away.
When a rule fails
The Studio flags the field
The field turns red and the message says which rule it broke.
Publishing waits
The Publish button stays off while any field fails.
The fix goes live
Once every field passes, the page publishes and open pages refresh.
The schema is one layer
Hosting, caching, security, and releases have rules of their own.
How it's runThis page comes from the seed copy bundled with the site, until the Sanity dataset publishes its own version.