GitHub

DaffCategoryMagentoDriverConfig

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

import { DaffCategoryMagentoDriverConfig } from '@daffodil/category/driver/magento'
interface DaffCategoryMagentoDriverConfig {
  truncateUrl: boolean
  uriTruncationStrategy: (string) => string
}

Properties

Name Type Description
truncateUrl boolean

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

uriTruncationStrategy (string) => string

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