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

Confusion about changes in folder structure in Sanity.io project.

2 replies
Last updated: Feb 26, 2024
Hey everyone:)
Haven’t used Sanity in a few months. Still new to webdev and I’m worried not to mess something up. There used to be a
schemas
folder, now there’s
schemaTypes
, is it the same thing? Because I can’t find the old one when I created a new app.
The index in
schemaTypes
is still just
export const schemaTypes = []
, but I wanted to make sure I’m doing everything right. The change isn’t reflected on the sanity getting started guide in the docs.

https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio#03c8fbda856atext=the%20command%20l[…]2%94%9C%E2%94%80%E2%94%80%20README.md
Thank you!
Feb 23, 2024, 10:01 AM
You’re doing it correctly! Did this show up in a Studio from the CLI or did you clone a template? The naming and structure of the directories ultimately does not matter. As long as the path to whatever you’re trying import is correct, you can structure everything however you want.
Feb 23, 2024, 6:40 PM
Ah good to hear, thank you very much for the feedback! This was from creating a new sanity app from CLI, no template. It just showed up with only
schemaTypes
.
Feb 26, 2024, 1:58 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?