Draft vs Published Content
This page explains what Draft and Published mean in Sanity, and how to preview changes before they go live.
Draft content
Draft is your working version.
Draft content is:
- Created when you start editing a document
- Saved automatically as you work
- Visible only to editors in Sanity Studio
- Available in preview tools, depending on your setup
If you need to undo changes, you can discard your draft to return to the last published version.
Published content
Published is what visitors see on the live website.
Published content is:
- Served to all visitors
- Cached for speed
- Updated only when you publish
Visitors never see your draft changes.
A simple workflow
A common workflow looks like:
- Edit a document (draft)
- Preview the draft (optional)
- Publish
- Confirm the change on the live site
Unpublish and history
Depending on your permissions and document type, you may be able to unpublish.
Use this carefully for Routes and Pages because it can remove a page from the live site.
Sanity also keeps document history so you can review previous versions.
Preview before publishing
If your Studio includes the Presentation tool, you can preview draft content in a live site layout before publishing.
Helpful reference:
- Sanity Presentation tool: https://www.sanity.io/docs/presentation