rembrembdocs

This page is also available as Markdown at /docs/app/api-reference/config/next-config-js/staticGeneration.md. For an index of all documentation, see /docs/llms.txt.

staticGeneration*

This feature is currently experimental and subject to change, it's not recommended for production. Try it out and share your feedback on GitHub.

Last updated April 10, 2026

The staticGeneration* options allow you to configure the Static Generation process for advanced use cases.

next.config.ts

JavaScriptTypeScript

import type { NextConfig } from 'next'
 
const nextConfig: NextConfig = {
  experimental: {
    staticGenerationRetryCount: 1,
    staticGenerationMaxConcurrency: 8,
    staticGenerationMinPagesPerWorker: 25,
  },
}
 
export default nextConfig

Config Options

The following options are available:

Was this helpful?