commerce icon indicating copy to clipboard operation
commerce copied to clipboard

I found that only 20 static pages limit for BigCommerce

Open chintanredefine opened this issue 2 years ago • 1 comments

I am facing issue and found that there is only 20 static pages limit for BigCommerce.

Is there any way to increase the limit as the website which I am working is huge and has more than 150 static pages.

chintanredefine avatar Oct 14 '21 15:10 chintanredefine

Open framework/bigcommerce/api/operations/get-all-pages.ts

Look for this

const { data } = await cfg.storeApiFetch<
      RecursivePartial<{ data: Page[] }>
    >('/v3/content/pages')

change it to

const { data } = await cfg.storeApiFetch<
     RecursivePartial<{ data: Page[] }>
   >('/v3/content/pages?limit=250')

kogan007 avatar Oct 14 '21 17:10 kogan007

Hey there! Thank you for opening this issue. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966

leerob avatar Apr 18 '23 02:04 leerob