MiddlewareConfig
Settings to be provided in the middleware.config.js file.
interface MiddlewareConfig {
branch?: string;
env: string;
fetchOptions?: FetchOptions;
key: string;
livePreview?: LivePreview;
region?: string;
token: string;
unified?: UnifiedConfig;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
branch | Optional | string | The branch of the Contentstack. |
env | Required | string | The environment of the Contentstack Stack. |
fetchOptions | Optional | FetchOptions | The fetch options of the Contentstack Stack. |
key | Required | string | The API key of the Contentstack Stack. |
livePreview | Optional | LivePreview | The live preview settings of the Contentstack Stack. |
region | Optional | string | The region of the Contentstack Stack. |
token | Required | string | The delivery token of the Contentstack Stack. |
unified | Optional | UnifiedConfig | Configuration for the unified extension. |