c5a0878946
## 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`.
8 lines
147 B
JavaScript
8 lines
147 B
JavaScript
/** @type {import("next").NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
prerenderEarlyExit: false,
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|