Skip to content

Increase the max query amount

Compare
Choose a tag to compare
@scottyzen scottyzen released this 05 Nov 21:06
· 37 commits to master since this release

Increase the max query amount if there are more than 100 products.

For now this is the best way of fixing the issue with rendering over 100 products. If you need to reduce the load on the server you can adjust the following in options in the nuxt.config.ts file.

  // Depending on your servers capabilities, you may need to adjust the following settings.
  // It will affect the build time but also increase the reliability of the build process.
  // If you have a server with a lot of memory and CPU, you can remove the following settings.
  nitro: {
    prerender: {
      concurrency: 10, // How many pages to prerender at once
      interval: 1000, // How long to wait between prerendering pages
      failOnError: false, // This stops the build from failing but the page will not be statically generated
    },
  },