Update image URL in reshapeImages function and add new hostname for sfcc

This commit is contained in:
Alex 2024-09-05 08:43:30 -05:00
parent 7c4b3b0e0d
commit 8311ef3f5f
2 changed files with 5 additions and 2 deletions

View File

@ -538,8 +538,7 @@ function reshapeImages(
return images.map((image) => {
return {
altText: image.alt!,
url: image.link,
// TODO: add field for size
url: image.disBaseLink || image.link,
width: image.width || 800,
height: image.height || 800
};

View File

@ -11,6 +11,10 @@ module.exports = {
{
protocol: 'https',
hostname: 'zylq-002.dx.commercecloud.salesforce.com',
},
{
protocol: 'https',
hostname: 'edge.disstg.commercecloud.salesforce.com',
}
]
}