File tree Expand file tree Collapse file tree
_components/product-schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const CompareProductsQuery = graphql(`
2929 entityId
3030 name
3131 defaultImage {
32- url: urlTemplate(lossy: true)
32+ url: urlTemplate
3333 altText
3434 }
3535 path
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const OrderItemFragment = graphql(`
1111 path
1212 }
1313 image {
14- url: urlTemplate(lossy: true)
14+ url: urlTemplate
1515 altText
1616 }
1717 subTotalListPrice {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const BlogPageQuery = graphql(`
2121 tags
2222 thumbnailImage {
2323 altText
24- url: urlTemplate(lossy: true)
24+ url: urlTemplate
2525 }
2626 seo {
2727 pageTitle
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const BlogPostsPageQuery = graphql(
4545 utc
4646 }
4747 thumbnailImage {
48- url: urlTemplate(lossy: true)
48+ url: urlTemplate
4949 altText
5050 }
5151 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const PhysicalItemFragment = graphql(`
1212 brand
1313 sku
1414 image {
15- url: urlTemplate(lossy: true)
15+ url: urlTemplate
1616 }
1717 entityId
1818 quantity
@@ -71,7 +71,7 @@ export const DigitalItemFragment = graphql(`
7171 brand
7272 sku
7373 image {
74- url: urlTemplate(lossy: true)
74+ url: urlTemplate
7575 }
7676 entityId
7777 quantity
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const ProductSchemaFragment = graphql(`
1717 numberOfReviews
1818 }
1919 defaultImage {
20- url: urlTemplate(lossy: true)
20+ url: urlTemplate
2121 }
2222 condition
2323 availabilityV2 {
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ const MultipleChoiceFieldFragment = graphql(`
2525 ... on SwatchOptionValue {
2626 __typename
2727 hexColors
28- imageUrl(lossy: true, width: 40)
28+ imageUrl(width: 40)
2929 }
3030 ... on ProductPickListOptionValue {
3131 __typename
3232 defaultImage {
3333 altText
34- url: urlTemplate(lossy: true)
34+ url: urlTemplate
3535 }
3636 }
3737 }
@@ -140,7 +140,7 @@ const ProductPageMetadataQuery = graphql(`
140140 name
141141 defaultImage {
142142 altText
143- url: urlTemplate(lossy: true)
143+ url: urlTemplate
144144 }
145145 seo {
146146 pageTitle
@@ -218,14 +218,14 @@ const StreamableProductQuery = graphql(
218218 edges {
219219 node {
220220 altText
221- url: urlTemplate(lossy: true)
221+ url: urlTemplate
222222 isDefault
223223 }
224224 }
225225 }
226226 defaultImage {
227227 altText
228- url: urlTemplate(lossy: true)
228+ url: urlTemplate
229229 }
230230 sku
231231 weight {
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ export const client = createClient({
3333 logger :
3434 ( process . env . NODE_ENV !== 'production' && process . env . CLIENT_LOGGER !== 'false' ) ||
3535 process . env . CLIENT_LOGGER === 'true' ,
36+ imageTransforms : {
37+ enableLossy : true ,
38+ lossyQuality : 30 ,
39+ } ,
3640 getChannelId : async ( defaultChannelId : string ) => {
3741 const locale = await getLocale ( ) ;
3842
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const FooterFragment = graphql(`
1919 }
2020 ... on StoreImageLogo {
2121 image {
22- url: urlTemplate(lossy: true)
22+ url: urlTemplate
2323 altText
2424 }
2525 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const HeaderFragment = graphql(`
1111 }
1212 ... on StoreImageLogo {
1313 image {
14- url: urlTemplate(lossy: true)
14+ url: urlTemplate
1515 altText
1616 }
1717 }
You can’t perform that action at this time.
0 commit comments