Sanity Studio v3.85.1: Multi-origin support for previews in Presentation Tool and revision history bugfix

✨ Highlights

Multi-origin support in Presentation Tool

The Presentation Tool now supports configuring multiple preview URL origins in a single instance. This unlocks better support for setups with multiple domains, like marketing sites and web stores that share the same dataset and schema.

You can now define multiple allowed origins and dynamically configure them using Sanity clients or URL patterns. This update includes:

New allowOrigins option to specify a list of valid origins.

Updated previewUrl.initial and previewMode support for async configuration.

Deprecation of previewUrl.origin and preview options.

This is the first milestone toward a more flexible, multi-origin editing experience in Presentation. Stay tuned for future improvements like autocomplete and better UI for switching between origins.

See the PR for details.

Other features

Updates the CLI help text for sanity dataset export to clarify how it handles failing assets. #9173

🐛 Notable bugfixes

Fixes an issue where the document revision tab would show incorrect diffs if no Published event existed. The logic now correctly falls back to the Created event when needed. #9196

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.