MiddlewareConfig
Settings to be provided in the middleware.config.js file.
interface MiddlewareConfig {
environment?: string;
host?: string;
preview?: boolean;
previewToken?: string;
space: string;
token: string;
unified?: UnifiedConfig;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
environment | Optional | string | Contentful Environment ID. Defaults to master. |
host | Optional | string | Contentful API host. |
preview | Optional | boolean | Verifies if the preview mode is enabled. Please note that this value will be ignored if the host one will be defined. |
previewToken | Optional | string | Contentful Preview Token. |
space | Required | string | Space ID. |
token | Required | string | Contentful CDA Access Token. |
unified | Optional | UnifiedConfig | Configuration for the unified extension. |