GitHub

DaffCategoryMagentoDriverConfig

import { DaffCategoryMagentoDriverConfig } from '@daffodil/category/driver/magento'

An interface for providing @daffodil/category/driver/magento with necessary config values.

interface DaffCategoryMagentoDriverConfig {
  truncateUrl: boolean
  uriTruncationStrategy: (string: any) => string
}

Properties

truncateUrl
boolean

Whether or not to attempt to truncate the category URL during the DaffMagentoCategoryService call. True by default.

uriTruncationStrategy
(string: any) => string

An optional custom function to truncate the URL. Defaults to truncate leading slash, file extension, query params, and fragments.