Skip to content

Commit

Permalink
GCOM-1488 fix product sitemap not showing all products with limit SSG…
Browse files Browse the repository at this point in the history
… enabled
  • Loading branch information
rustmaestro committed Oct 2, 2024
1 parent ce104e9 commit 556e72c
Showing 1 changed file with 1 addition and 1 deletion.
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 556e72c

Please sign in to comment.