mirror of
https://github.com/vercel/commerce.git
synced 2025-05-08 18:57:51 +00:00
Update image URL in reshapeImages function and add new hostname for sfcc
This commit is contained in:
parent
7c4b3b0e0d
commit
8311ef3f5f
@ -538,8 +538,7 @@ function reshapeImages(
|
|||||||
return images.map((image) => {
|
return images.map((image) => {
|
||||||
return {
|
return {
|
||||||
altText: image.alt!,
|
altText: image.alt!,
|
||||||
url: image.link,
|
url: image.disBaseLink || image.link,
|
||||||
// TODO: add field for size
|
|
||||||
width: image.width || 800,
|
width: image.width || 800,
|
||||||
height: image.height || 800
|
height: image.height || 800
|
||||||
};
|
};
|
||||||
|
@ -11,6 +11,10 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostname: 'zylq-002.dx.commercecloud.salesforce.com',
|
hostname: 'zylq-002.dx.commercecloud.salesforce.com',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
protocol: 'https',
|
||||||
|
hostname: 'edge.disstg.commercecloud.salesforce.com',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user