How to make Studio launch on Dashboard view instead of Desk view?
Yes! You can change which tool opens by default in Sanity Studio by using the tools property in your configuration to reorder the tools array.
The first tool in the array will be the one that opens when you navigate to the Studio root. Here's how to make the Dashboard tool open instead of the Structure tool:
Configure the Default Tool
In your sanity.config.ts file, use the tools callback with the (prev, context) pattern to sort the array and place your desired tool first:
// sanity.config.ts
import {defineConfig} from 'sanity'
import {dashboardTool} from '@sanity/dashboard'
import {structureTool} from 'sanity/structure'
export default defineConfig({
name: 'default',
title: 'example',
projectId: '<project-id>',
dataset: 'production',
plugins: [structureTool(), dashboardTool()],
tools: (prev, context) => {
return prev.sort((a, b) => {
if (a.name === 'dashboard') {
return -1 // Moves 'dashboard' tool to the top of the list
}
return 1
})
}
})This approach changes which tool opens by default when you visit the Studio, but it won't affect the visual order in the navigation bar.
Changing Both Order and Default Tool
If you want to change both the navigation order AND the default tool, you can combine approaches. The tools cheat sheet documentation has detailed examples showing how to control both the visual ordering (via studio.components.toolMenu) and the default tool (via the tools property).
The key thing to remember: the first tool in the tools array is what opens by default when you load the Studio.
Show original thread3 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.