Read about the plugin here.
sanity install @sanity/scheduled-publishing
Simply installing the plugin adds the ability to schedule the publication of all documents over time from the drop-down list level next to the "Publish" button. The snippets below show the customization options for this.
- Change Publish button to Schedule for all documents that are
type1
andtype2
- Change Publish button to Schedule for all documents documents that are
type3
and have not yet been published or have been published with a date in the future.type3 has field publishAt
- Show the Schedule button on
type4
documents only.The Schedule button appears in the drop-down list next to the Publish button, but does not replace it.