Alokai

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

NameRequiredTypeDescription
branchOptionalstringThe branch of the Contentstack.
envRequiredstringThe environment of the Contentstack Stack.
fetchOptionsOptionalFetchOptionsThe fetch options of the Contentstack Stack.
keyRequiredstringThe API key of the Contentstack Stack.
livePreviewOptionalLivePreviewThe live preview settings of the Contentstack Stack.
regionOptionalstringThe region of the Contentstack Stack.
tokenRequiredstringThe delivery token of the Contentstack Stack.
unifiedOptionalUnifiedConfigConfiguration for the unified extension.

Referenced Types

On this page