Configuration

Bounded static generation tuning

Experimental staticGenerationMaxConcurrency bounds pages processed per worker, not all upstream requests or total workers. staticGenerationRetryCount controls failed-generation retries. Keep upstream concurrency and timeouts independently bounded and compare clean builds. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/staticGeneration. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
experimental.staticGenerationMaxConcurrency (and related flags)

Working Example

Example Snippetnextjs
export default {experimental:{staticGenerationMaxConcurrency:2,staticGenerationRetryCount:1}}
Next.js Reference