Sanity
Configure sanity CMS with a single click
Usage
Setup Sanity Project
- Create a sanity account
- Create a new sanity project
- Make sure to select "From scratch with CLI."
Setup Environment Variables
- Now we need to find your projectId and dataset.
- Your
projectId
should be on your new project page, and also in the URL as follows: https://www.sanity.io/manage/personal/project/PROJECT_ID - Your
dataset
should be available here: https://www.sanity.io/manage/personal/project/PROJECT_ID/datasets. By default it should be called production
- Paste your projectId and dataset into your code as follows:
Configure The Sanity CLI
- Download the sanity CLI globally:
- Login with the sanity CLI:
- Deploy Sanity Studio locally for testing:
- Once you are ready, you can now deploy your studio to the web:
Note
There are many more CLI commands that you may find useful. Visit the cli reference to learn more.
Bonus Features
Blog schema
Demo component to fetch and render data