Improvements and bugfixes
Published: August 8, 2023
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
npm create sanity@latest
To upgrade a v3 Studio, run this command in its folder:
npm install sanity@latest
✨ Highlights
- Adds new
tokenlogin method for rare cases when the more secure cookie approach is not viable/wanted - Enables specifying authentication options using an object instead of
createAuthStore() - Adds new
is_definedfilter to GraphQL APIs, mirroring thedefined()function in GROQ. GraphQL APIs will have to be re-deployed to enable the new filter.
🐛 Notable bugfixes
- Improves performance when fetching projects list as part of the
sanity initCLI command - Fixes an issue that would give intermittent validation errors for valid string values when using a regex with global flag
- Fixes an issue where references to undeclared document types would never load
- Improves error UIs for reference values
- Improves the changes pane to show path line and change indicator correctly for the following field types:
- Array of strings (
arrayof typestring) - Array of tags (
arrayof typestringwithlayout: 'tags') - Array of strings (
arrayof typestringwithoptions.list) - Array of emails (
arrayof typeemail)
- Array of strings (
Related documentation
- Previous page
GraphQL
How to deploy and query GraphQL API for your Sanity projects
Custom authentication
The Studio can be configured to use your own login solution rather than the standard ones by supplying the auth provider details in your studio configuration.
Configuration API
The Configuration API in Sanity Studio is the primary mechanism that allows you to customize the Studio.
Configuration
Sanity Studio lets you quickly get up and running by configuring it with JavaScript or TypeScript.