Skip to content

Commit

Permalink
fix(gatsby-source-shopify): Don't remove version string from Shopify …
Browse files Browse the repository at this point in the history
…image URLs (#29458)
  • Loading branch information
Sam Slotsky authored Feb 17, 2021
1 parent a639e9d commit f25ea67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-source-shopify/src/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const CollectionNode = imageArgs =>
node.image.localFile___NODE = await downloadImageAndCreateFileNode(
{
id: node.image.id,
url: node.image.src && node.image.src.split(`?`)[0],
url: node.image.src,
nodeId: node.id,
},
imageArgs
Expand Down Expand Up @@ -142,7 +142,7 @@ export const ProductNode = imageArgs =>
edge.node.localFile___NODE = await downloadImageAndCreateFileNode(
{
id: edge.node.id,
url: edge.node.originalSrc && edge.node.originalSrc.split(`?`)[0],
url: edge.node.originalSrc,
},
imageArgs
)
Expand Down Expand Up @@ -172,7 +172,7 @@ export const ProductVariantNode = (imageArgs, productNode) =>
node.image.localFile___NODE = await downloadImageAndCreateFileNode(
{
id: node.image.id,
url: node.image.originalSrc && node.image.originalSrc.split(`?`)[0],
url: node.image.originalSrc,
},
imageArgs
)
Expand Down

0 comments on commit f25ea67

Please sign in to comment.