v3.54.0
✨ Highlights
Copy Paste Improvements
- Adds support for copying supported object types into array fields
- Adds support for copying and pasting individual array items
Multiple deployment targets for Sanity Studio
Introduces support for adding multiple [my-company].sanity.studio
deployments for a project. Link your studio code to a specific hostname with the new studioHost
property in the CLI config as shown below, or select or create a deployment target when prompted while running sanity deploy
. You can now see all your studio deployments in the project management settings.
// ./sanity.cli.ts
import {defineCliConfig} from 'sanity/cli'
export default defineCliConfig({
api: {
projectId: 'projectid',
dataset: 'production'
},
// Tip: You can use an environment variable for studioHost if you want
// to deploy separate studios for production, staging, testing etc.
studioHost: 'my-company'
})
Read more in the Hosting and deployment article in the docs.
🐛 Notable bugfixes
- Fixes an issue where you were able to copy and paste documents that contained non-existing references
- Fixes an issue where
getValueAtPath()
utility wouldn't work for 0 index path segments(['array', 0])
Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Sindre Gulseth | chore(typegen): move prettier formatting into generateAction (#7333) | 3c34f08 |
Cody Olsen | fix(deps): @bjoerge/mutiny is now @sanity/mutate (#7344) |
4aeb5b6 |
Bjørge Næss | chore(dev): add groq package to monorepo aliases (#7340) | d44b06e |
renovate[bot] | chore(deps): update pnpm to v9.7.0 (#7346) | 0772245 |
renovate[bot] | fix(deps): update dependency @portabletext/editor to ^1.0.12 (#7352) | ecde097 |
renovate[bot] | fix(deps): update dependency @sanity/insert-menu to v1.0.8 (#7343) | 088139d |
renovate[bot] | fix(deps): update dependency get-it to ^8.6.4 (#7353) | f6b6378 |
renovate[bot] | fix(deps): Update dev-non-major (#7345) | eefb5ea |
Christian Grøngaard | chore(test-studio): fix custom markers PTE example (#7358) | 43b9969 |
RitaDias | test(dev): add media plugin to studio e2e & test (#7236) | 12d1411 |
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.16.4 (#7359) | 441d7e5 |
Ash | feat(test-studio): add noop custom publish action example | 7860c8e |
Ash | fix(sanity): prevent empty actions being executed | c2e4eb3 |
Fred Carlsen | feat(core): support pasting object into array + copying individual array items (#7292) | ea55826 |
Rune Botten | fix(deps): update and pin react-i18next to 14.0.2 (#7364) | 3cecfdd |
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.21.2 (#7354) | db6741b |
Sindre Gulseth | fix(typegen): dont treat all document type refs as references (#7366) | 32958d3 |
Pedro Bonamin | fix(core): update eslintrc config to show no-restricted-imports rules (#7367) | 22e717e |
renovate[bot] | fix(deps): update dependency @portabletext/editor to ^1.0.13 (#7370) | a361063 |
Rico Kahler | feat(cli): update CLI to use new deploy endpoint (#7244) | 14ae5cb |