mirror of
https://github.com/vercel/commerce.git
synced 2025-05-08 10:47: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 {
|
||||
altText: image.alt!,
|
||||
url: image.link,
|
||||
// TODO: add field for size
|
||||
url: image.disBaseLink || image.link,
|
||||
width: image.width || 800,
|
||||
height: image.height || 800
|
||||
};
|
||||
|
@ -11,6 +11,10 @@ module.exports = {
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'zylq-002.dx.commercecloud.salesforce.com',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'edge.disstg.commercecloud.salesforce.com',
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user