Alokai

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

NameRequiredTypeDescription
environmentOptionalstringContentful Environment ID. Defaults to master.
hostOptionalstringContentful API host.
previewOptionalbooleanVerifies if the preview mode is enabled. Please note that this value will be ignored if the host one will be defined.
previewTokenOptionalstringContentful Preview Token.
spaceRequiredstringSpace ID.
tokenRequiredstringContentful CDA Access Token.
unifiedOptionalUnifiedConfigConfiguration for the unified extension.

On this page