Setup Sanity Studio

is the content service that powers the Space Madness stack. It provides a robust content model system and query language to get structured data in a sensible way.

Sanity is easy to setup with Space Madness.

If you haven't already, sign up for a Sanity account here.

Once you have an account, you can create a project.

Your project dashboard will have a project ID. Copy that value to your clipboard.

Open your terminal of choice and set an environment variable name SANITY_STUDIO_PROJECT_ID.

For MacOS and Linux users:

export SANITY_STUDIO_PROJECT_ID=pasteProjectIdFromClipboard

For Windows users:

set SANITY_STUDIO_PROJECT_ID=pasteProjectIdFromClipboard

Once that is set, you can run your application to verify:

turbo dev

That's all there is to it. You should be able to start adding content to your Sanity project immediately.

The structure of the data is defined by the Sanity definitions in apps/site-sanity/schemas/index.ts. Check out our guide for to learn more about how to structure your data.