Skip to content

Commit

Permalink
Merge pull request #2378 from graphcommerce-org/fix/GCOM-1488
Browse files Browse the repository at this point in the history
GCOM-1488 fix product sitemap not showing all products with limit SSG enabled
  • Loading branch information
paales authored Oct 7, 2024
2 parents e4d0e9d + c8237dc commit d391ecb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-cycles-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-product': patch
---

Fixed the products sitemap not containing more than 100 products when limit SSG is enabled
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function getProductStaticPaths(
const { data } = await query
const totalPages = data.products?.page_info?.total_pages ?? 1

if (totalPages > 1 && import.meta.graphCommerce.limitSsg !== true) {
if (totalPages > 1 && options.limit !== true) {
for (let i = 2; i <= totalPages; i++) {
pages.push(
client.query({
Expand Down

0 comments on commit d391ecb

Please sign in to comment.