138361208c
This PR removes the duplicate overview link for data fetching, and fixes the corresponding links ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com> Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
19 lines
924 B
Markdown
19 lines
924 B
Markdown
# Static page generation timed out after multiple attempts
|
|
|
|
#### Why This Error Occurred
|
|
|
|
Next.js tries to restart the worker pool of the static page generation when no progress happens for a while, to avoid hanging builds.
|
|
|
|
When restarted it will retry all uncompleted jobs, but if a job was unsuccessfully attempted multiple times, this will lead to an error.
|
|
|
|
#### Possible Ways to Fix It
|
|
|
|
- Make sure that there is no infinite loop during execution.
|
|
- Make sure all Promises in `getStaticPaths`/`getStaticProps` `resolve` or `reject` correctly.
|
|
- Avoid very long timeouts for network requests.
|
|
- Increase the timeout by changing the `staticPageGenerationTimeout` configuration option (default `60` in seconds).
|
|
|
|
### Useful Links
|
|
|
|
- [`getStaticPaths`](https://nextjs.org/docs/basic-features/data-fetching/get-static-paths.md)
|
|
- [`getStaticProps`](https://nextjs.org/docs/basic-features/data-fetching/get-static-props.md)
|