Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive
Back to changelog

Enhanced field-level copy-paste functionality and introducing multiple deployment targets for Sanity Studio ++

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

Documentation affected by this release

Published August 14, 2024