Migration routeIn early access

Migrate from Directus to Sanity

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

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

What Reloque reads from Directus

Reloque reads Directus's data model first, as Directus has no content types of its own: a collection called posts, articles, blog or news is read as posts, one called pages as pages, and every other collection as a type of its own, singletons as site settings. Each item comes with its fields, files and galleries, the categories and tags it relates to (under their parents), its author (the user who made it when nothing else names one), page builder blocks and links to other items. HTML, Markdown and block editor fields are read as HTML. Translations come in every language, the file library comes as media, and the redirects collection, the navigation menus and the SEO field come too. Members come when you choose them: users in a role that cannot use the Directus app, with their role and fields but never their passwords.

How it lands in Sanity

Records go into the dataset's own document types, matched by name, writing the fields their documents have. A dataset with no posts or pages gets documents shaped as Sanity's blog starter (post, page, category, tag and author), which the Studio shows once its schema has those types. Bodies become Portable Text, with images uploaded as assets and links between records as references. Categories, tags and authors become documents of the types the dataset refers to. Each language becomes a document of its own, tied to the others as document internationalisation does. SEO data goes into an SEO object, menus into navigation documents and redirects into redirect documents. Drafts stay drafts, and published records are published.

What to plan for

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

  • 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.
  • 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.

Versions checked

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

Questions

Can Reloque migrate Directus to Sanity?

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

What does a migration from Directus to Sanity 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 Sanity where it keeps redirects, or ready as a CSV for your host or front end. SEO titles, descriptions and social images move where Sanity has a place for them.

Is anything written to Sanity before I approve it?

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

Early access

Planning this move?

Reserve a free assessment and tell us you are moving Directus to Sanity. 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 Directus to Sanity?

Reserve a free assessment and we look at your Directus site with you: what moves to Sanity, 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.