Live Migration of a Real Sanity Studio from v2 to v3

Опубликовано: 01 Январь 1970
на канале: Sanity
2,281
43

In this video, Simeon and Knut from Sanity migrate a real customer studio from version 2 to 3. You can watch this video to understand what goes into a studio migration and what some of the new APIs for Sanity Studio v3 are.

Check out our migration guides here:
https://www.sanity.io/docs/migrating-...

Sign up for a free account at:
https://www.sanity.io/get-started

00:00 Intro
02:25 Why migrate to Studio v3?
03:55 Studio overview of what to migrate
07:00 How to migrate while staying in production
10:00 Deleting old and installing new dependencies
16:55 Adding `sanity dev` to the package.json scripts
17:45 Adding the new config file (`sanity.config.js`)
21:12 Adding Desk tool to the plugins array
22:20 Migrating schemas (content types)
25:00 Renaming files with React components from JS to JSX
29:00 Migrating the Desk structure
39:37 Some of Sanity Studio v3's new features
46:29 Migrating a custom Studio logo
51:00 Explaining the new composable customization feature
53:00 Installing and rendering the Vision plugin conditionally
58:00 Summary
01:00:00 TypeScript and new helper functions for schemas
01:01:45 The new Sanity CLI config file
01:02:42 How to use @sanity/plugin-kit to verify a v3 Studio