Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.56 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.56 KB

Sanity Setup and Development

If you’re running this project locally to learn and/or build your own version, you’ll need your own Sanity instance!

Check out Sanity’s docs to learn how to create and configure your own Sanity instance.

Developing with Sanity

NOTE: You only need to get Sanity running locally if you need to make changes to the Sanity schema. Otherwise you should use the hosted version of the Sanity backend for content management.

# install the Sanity CLI if you don’t have it already
npm i -g @sanity/cli

# go into the Sanity folder
cd backend/

# install sanity into the project
sanity install

# start the studio
sanity start

REMINDER: you don’t have to run the studio locally during development. You only need to run the studio locally if you’re making changes to the data schema.

After making changes, you need to deploy both the studio and the GraphQL API.

sanity deploy
sanity graphql deploy

Additional Resources

More links about Sanity: