Skip to content

Commit 86b5b8a

Browse files
committed
chore: define a better size of product images
1 parent 74cc576 commit 86b5b8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/graphql/queries/products.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const GET_VARIABLE_PRODUCTS_QUERY = gql`
3636
averageRating
3737
slug
3838
image {
39-
sourceUrl
39+
sourceUrl(size: WOOCOMMERCE_SINGLE)
4040
}
4141
price
4242
regularPrice
@@ -61,7 +61,7 @@ export const GET_SINGLE_VARIABLE_PRODUCT_QUERY = gql`
6161
commentCount
6262
image {
6363
id: databaseId
64-
sourceUrl
64+
sourceUrl(size: WOOCOMMERCE_SINGLE)
6565
altText
6666
}
6767
customAttributes {
@@ -85,7 +85,7 @@ export const GET_SINGLE_VARIABLE_PRODUCT_QUERY = gql`
8585
galleryImages {
8686
nodes {
8787
id
88-
sourceUrl
88+
sourceUrl(size: WOOCOMMERCE_SINGLE)
8989
altText
9090
}
9191
}

0 commit comments

Comments
 (0)