Skip to content

Commit

Permalink
fix: remove trailing comma on loader uri
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Aug 10, 2022
1 parent 76f8221 commit 371a3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/cloudinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type CloudinaryFetchProps = { src: string; width?: number; height?: number; qual
type ClodunaryImageLoader = (resolverProps: CloudinaryFetchProps) => string

export const cloudinaryLoader: ClodunaryImageLoader = ({ src, width, height }: CloudinaryFetchProps) => {
return `https://res.cloudinary.com/sushi-cdn/image/fetch/f_auto,fl_sanitize,q_auto,${width ? `w_${width},` : ''}${
return `https://res.cloudinary.com/sushi-cdn/image/fetch/f_auto,fl_sanitize,q_auto,${width ? `w_${width}` : ''}${
height ? `h_${height},` : ''
}/${normalizeUrl(src)}`
}
Expand Down

0 comments on commit 371a3ec

Please sign in to comment.