Sanity — content lake
sanity/project · version 1
envs add sanity/project
This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.
| Key | Needed | Kind | Notes |
|---|---|---|---|
SANITY_PROJECT_ID |
required | config | Which project to read. Public because the client needs it in the browser; Sanity's security guidance is written about tokens and never about this. The name is convention.. where to get it |
SANITY_DATASET |
required | config | Which dataset within the project, usually production. An identifier, and in the browser for the same reason. The name is convention.. where to get it |
SANITY_API_READ_TOKEN |
optional | secret | Sanity says a personal token gives complete access as your user, and to use a scoped robot token for a service instead. It never states that a read-scoped token is safe in a browser, so this one is not treated as public.. where to get it |