Migrations
How to run
- Make sure you have
npx
installed (if you havenpm
version 5.2.0 or later, it is already installed) - Run the migration with
npx -p sanity-io/migrations <migration>
E.g:
npx -p sanity-io/migrations date-to-richdate
Supported migrations
date-to-richdate
- More info at https://sanity.io/help/migrate-to-rich-dateblock-spans-to-children
- More info at https://sanity.io/help/migrate-to-block-childrenfix-draft-refs
- Repairs all references to draft documents with references to the published version