Skip to content

Commit

Permalink
🐛 fix smallFilename source with cloudflare images
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Nov 26, 2024
1 parent 376fbc5 commit deda2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/utils/src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function generateSourceProps(
const smallSizes = getSizes(smallImage.originalWidth)
props.push({
media: "(max-width: 768px)",
srcSet: generateSrcSet(smallSizes, encodedSmallId),
srcSet: generateSrcSet(smallSizes, encodedSmallId, absoluteUrl),
})
}
if (regularImage && regularImage.cloudflareId) {
Expand Down

0 comments on commit deda2e9

Please sign in to comment.