Congratulations, you have now installed the Sanity Content Studio, an open-source real-time content editing environment connected to the Sanity backend.
Now you can do the following things:
This repo includes a workflow at .github/workflows/sanity-deploy.yml that:
- Installs dependencies, lints, and builds on every push/PR to
main. - Automatically deploys the Studio on pushes to
mainusing the Sanity CLI.
Setup required:
- Create a token in your Sanity project (Manage > API > Tokens) with
Vieweris sufficient for deploys, orEditorif also deploying GraphQL. - In your GitHub repository, add the following secrets:
SANITY_AUTH_TOKEN: The token value from step 1.DEPLOY_GRAPHQL(optional): Set totrueto also runnpm run deploy-graphql.
The workflow uses sanity.config.js to determine projectId and dataset (currently sxacwtq0 / production).