DaffProductMagentoDriverConfig
An interface for providing @daffodil/product/driver/magento with necessary config values.
import { DaffProductMagentoDriverConfig } from '@daffodil/product/driver/magento'
interface DaffProductMagentoDriverConfig {
baseMediaUrl: string
truncateUrl: boolean
urlTruncationStrategy: (string) => string
}
Properties
Name | Type | Description |
---|---|---|
baseMediaUrl | string | The fully-qualified base URL for media assets, such as product images. e.g. https://api.daff.io/media/ |
truncateUrl | boolean | Whether or not to attempt to truncate the product URL
during the |
urlTruncationStrategy | (string) => string | An optional custom function to truncate the URL. Defaults to truncate leading path segments, file extension, query params, and fragments. |