Contentful — delivery and management
contentful/delivery · version 1
envs add contentful/delivery
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 |
|---|---|---|---|
CONTENTFUL_SPACE_ID |
required | config | Which space to read. Public because the delivery client needs it in the browser alongside the token below. The name is convention.. where to get it |
CONTENTFUL_DELIVERY_TOKEN |
required | config | Contentful's own API reference repository says delivery tokens are safe for client-side use because they are read-only over published content. That statement comes from Contentful's repository rather than its documentation site.. where to get it |
CONTENTFUL_PREVIEW_TOKEN |
optional | secret | Reads unpublished content, which is why Contentful says never to expose it in client-side code. Contentful documents no variable name for it, so this one is convention.. where to get it |
CONTENTFUL_MANAGEMENT_TOKEN |
optional | secret | Writes. Contentful says it must stay server-side only. There is no rotation in place: create the replacement, move over, then revoke.. where to get it |