mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Closes: https://linear.app/vercel/issue/DOC-4686/clean-up-routing-section Redirects: https://github.com/vercel/front/pull/47151 --------- Co-authored-by: Joseph <[email protected]> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
---
|
|
title: staticGeneration*
|
|
description: Learn how to configure static generation in your Next.js application.
|
|
version: experimental
|
|
---
|
|
|
|
The `staticGeneration*` options allow you to configure the Static Generation process for advanced use cases.
|
|
|
|
```ts filename="next.config.ts" switcher
|
|
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
experimental: {
|
|
staticGenerationRetryCount: 1,
|
|
staticGenerationMaxConcurrency: 8,
|
|
staticGenerationMinPagesPerWorker: 25,
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|
|
```
|
|
|
|
```js filename="next.config.js" switcher
|
|
const nextConfig = {
|
|
experimental: {
|
|
staticGenerationRetryCount: 1,
|
|
staticGenerationMaxConcurrency: 8,
|
|
staticGenerationMinPagesPerWorker: 25,
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|
|
```
|
|
|
|
## Config Options
|
|
|
|
The following options are available:
|
|
|
|
- `staticGenerationRetryCount`: The number of times to retry a failed page generation before failing the build.
|
|
- `staticGenerationMaxConcurrency`: The maximum number of pages to be processed per worker.
|
|
- `staticGenerationMinPagesPerWorker`: The minimum number of pages to be processed before starting a new worker.
|