Was this page helpful?
Learn how to migrate Sanity Studio from v2 to v3
Sanity Studio v3 provides exceptional flexibility and an unparalleled developer experience so you can create a content system to fit your business. To create the new studio customization framework, we conducted a major rewrite of Sanity Studio’s API surfaces and application architecture. It was not possible to create Studio v3 without introducing breaking changes from Studio v2. We do our very best to avoid breaking changes and are proud to have maintained Studio v2 since October 2020.
Below is a high-level overview of what you need to consider migrating from Studio v2 to v3. You can also look at the following resources:
The points below should give you a quick sense of the work that’s involved in migrating from Studio v2 to v3.
The amount of work depends on how much customization you have done that relies on importing Parts and other studio dependencies.
package.json:@sanity/base@sanity/core@sanity/default-layout@sanity/default-login@sanity/desk-toolsanity@latest package from npm"@sanity/ui": "^1""react": "^18.2.0""react-dom": "^18.2.0"sanity.json to sanity.config.jsimport X from part:X statement with new public Studio APIscomponents property in the Schema APIsanity.json to the new Plugin APIimport X from "part:X" statement over to the new public Studio APIsSanity Studio v3 doesn't introduce any breaking changes to the editing experience, only improvements, like better global search. As a content creator, you should expect your workflows to be the same.
We will continue to fix critical bugs in Studio v2 until the end of standard support on December 7th, 2023. You can set up and configure Studio v3 in parallel to your current production Studio running on a previous version.
The Content Lake data store and associated APIs that host and distribute content created from the Sanity Studio have not been changed and are not impacted by the aforementioned changes.