MiddlewareStoreConfig
interface MiddlewareStoreConfig {
baseSiteId: string;
baseStoreUid?: string;
catalogId: string;
catalogVersion: string;
defaultCurrency: string;
defaultLanguage: string;
urlPatterns?: string[];
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
baseSiteId | Required | string | First parameter of every request (e.g. electronics). It allows for fetching content for the right Base Site and - in turn - the right Base Store. |
baseStoreUid | Optional | string | Unique identifier of the Base Store. Can be skipped if the uid of your Base Store and the uid of your Base Site are the same. |
catalogId | Required | string | Main catalog id (e.g. electronicsProductCatalog). |
catalogVersion | Required | string | Main catalog version (e.g. Online). |
defaultCurrency | Required | string | Isocode of the default currency for the current Base Store (e.g. USD). Will be sent to OCC API if no vsf-currency cookie comes from the frontend (e.g. during the first page load). |
defaultLanguage | Required | string | Isocode of the default language for the current Base Store (e.g. EN). Will be sent to OCC API if no vsf-locale cookie comes from the frontend (e.g. during the first page load). |
urlPatterns | Optional | string[] | Array of URL patterns that can be used for domain recognition. |