Watch a live product demo šŸ‘€ See how Sanity powers richer commerce experiences

Dev Mode

By Ollie Taylor

List all schemas in development


import S from "@sanity/desk-tool/structure-builder";

const structureListAll = S.listItem()
	.title("All Document Types")
			.title("All Types")
				/* This returns an array of all the document types defined in the schema.*/

export default () =>
		.title("Content Management")
			process.env.NODE_ENV === "development" ? structureListAll : S.divider(),

This snippet will list all your schema types in your studio. This can be great for debugging in development.

You can leave this snippet in when you deploy as it will not render in production.


Ollie Taylor

A multiĀ­dimensional designer with a healthy obsession for code

Ollie is located at Staines-Upon-Thames, UK
Visit Ollie Taylor's profile