Migration routeIn early access

Migrate from Sanity to Directus

Reloque moves your Sanity content into Directus: posts, pages, media, SEO data and redirects. It maps every field, previews every record and tests a sample on Directus before the real move.

Join early access Free for early-access members: we look at your Sanity site with you before anything moves.

What Reloque reads from Sanity

Reloque reads the dataset through Sanity's API, drafts included. Sanity keeps its schema in the Studio's code, so document types and their fields are read from the documents themselves, and told apart by name and fields: a type for posts, one for pages, your own types as types of their own, authors, and categories and tags. Images and files come as media. Portable Text keeps its headings, lists, links, formatting and images, and references between documents point at the moved records. Translations made with document internationalisation come as each record's languages, an SEO object reaches the other CMS's SEO fields, and menu and redirect documents come as menus and redirects.

How it lands in Directus

Posts go into the project's posts collection and pages into its pages collection; where it has none, Reloque makes them, with categories and tags, an image and an author, after checking a Directus 12 licence has room. Other types go into the collection of the same name. Bodies go into each field in its own format (HTML, Markdown or block editor), with images and files copied into the file library and links between records pointing at their new addresses. Authors become users without a role, so they take no seat. Each language becomes a row of the collection's translations, redirects go into a redirects collection and menus into a navigation collection, each made where missing. Members become users in a role without app access, who set their own password.

What to plan for

Better to know now than after the switch. The free scan names anything on your site that cannot move.

  • Sanity: Sanity has no members or comments, so neither moves into or out of it.
  • Sanity: A block of your own in Portable Text, such as a call to action, keeps only a link to what it points at.
  • Sanity: Translations kept field by field inside one document (internationalised arrays) are not read yet; translations as documents of their own are.
  • Sanity: Documents Reloque writes into types your Studio has no schema for are stored, but the Studio shows them only once its schema has those types.
  • Sanity: Site settings and dictionary items have no place in Sanity, so they are left out.
  • Directus: Directus has no content types of its own, so posts and pages are found by their collections' usual names; another collection moves as a type of its own, and the Map step says where.
  • Directus: Directus 12's free Core licence allows 25 collections and three seats. Reloque checks the room before it makes collections, and authors and members take no seat, but a large model may need a licence.
  • Directus: A field the destination collection lacks is left out with a note; Reloque makes whole collections, not single fields.
  • Directus: Directus 8 and older use another API, so Reloque connects to Directus 9 and later.
  • Directus: Flows, dashboards, presets and roles' permissions stay in Directus.

Versions checked

  • Sanity: One hosted service, so there are no versions to choose. Any Studio version works, as Reloque talks to the project's API.
  • Directus: Checked on Directus 12.7, 11.17, 10.13 and 9.26.

Questions

Can Reloque migrate Sanity to Directus?

Yes. Reloque moves content from Sanity to Directus, for early-access members now. One hosted service, so there are no versions to choose. Any Studio version works, as Reloque talks to the project's API. Checked on Directus 12.7, 11.17, 10.13 and 9.26.

What does a migration from Sanity to Directus cost?

The assessment is free and gives your exact price: you pay for the records a migration writes, and media files do not count. Packages start at £99, and records are shared across any number of migrations for 12 months.

Will my addresses and SEO survive the move?

Every address that changes gets a redirect, written to Directus where it keeps redirects, or ready as a CSV for your host or front end. SEO titles, descriptions and social images move where Directus has a place for them.

Is anything written to Directus before I approve it?

No. You see every record in the Preview first, then a small sample is written to Directus so you can check it on the real site, and undo it. Sanity is only ever read.

Early access

Planning this move?

Reserve a free assessment and tell us you are moving Sanity to Directus. We will look at your site with you before anything moves.

Plan this move with us

Early access is free. Tell us both systems when you reserve.

Free assessment

Moving Sanity to Directus?

Reserve a free assessment and we look at your Sanity site with you: what moves to Directus, what stays, and the price. Nothing is written until you approve it.

Get your free assessment
Early-access members get a free migration assessment.
  1. Connect both sitesReloque reads the source and checks it may write to the destination.
  2. Check the mappingEvery field is matched, and the uncertain ones are yours to decide.
  3. Test a sampleA few records are written to the destination, read back and removed.
  4. Move the restEvery record is written and checked, with redirects for old addresses.