rsnext/test/production/app-dir-hide-suppressed-error-during-next-export/next.config.js
JJ Kasper c5a0878946
Change default of prerenderEarlyExit to true (#65830)
## Background

Historically during prerendering we have waiting until all paths have
been attempted before we exit the process and fail the build. This is
nice if you want to collect all potential errors to address them at the
same time although this has the drawback of slowing down builds if
things are timing out or if the same error is occurring across numerous
paths.

## New Behavior

This changes our default behavior to immediately exit when the first
error occurs during prerendering so that builds don't stall out from
timeout errors or from the same error occurring across numerous paths.
This will help from holding up CI or similar un-necessarily.

If users want to opt-in to the previous behavior the flag is still
present under `experimental.prerenderEarlyExit`.
2024-05-20 12:51:01 -07:00

8 lines
147 B
JavaScript

/** @type {import("next").NextConfig} */
const nextConfig = {
experimental: {
prerenderEarlyExit: false,
},
}
module.exports = nextConfig