Unverified Commit 5a5f0d00 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Enable serial build by default (#25642)

parent 9c3780fb
...@@ -543,10 +543,7 @@ export default async function build( ...@@ -543,10 +543,7 @@ export default async function build(
const webpackBuildStart = process.hrtime() const webpackBuildStart = process.hrtime()
let result: CompilerResult = { warnings: [], errors: [] } let result: CompilerResult = { warnings: [], errors: [] }
// We run client and server compilation separately when configured for // We run client and server compilation separately to optimize for memory usage
// memory constraint and for serverless to be able to load manifests
// produced in the client build
if (isLikeServerless || config.experimental.serialWebpackBuild) {
await nextBuildSpan await nextBuildSpan
.traceChild('run-webpack-compiler') .traceChild('run-webpack-compiler')
.traceAsyncFn(async () => { .traceAsyncFn(async () => {
...@@ -565,11 +562,6 @@ export default async function build( ...@@ -565,11 +562,6 @@ export default async function build(
} }
} }
}) })
} else {
result = await nextBuildSpan
.traceChild('run-webpack-compiler')
.traceAsyncFn(() => runCompiler(configs))
}
const webpackBuildEnd = process.hrtime(webpackBuildStart) const webpackBuildEnd = process.hrtime(webpackBuildStart)
if (buildSpinner) { if (buildSpinner) {
......
...@@ -50,7 +50,6 @@ export type NextConfig = { [key: string]: any } & { ...@@ -50,7 +50,6 @@ export type NextConfig = { [key: string]: any } & {
scriptLoader?: boolean scriptLoader?: boolean
stats?: boolean stats?: boolean
externalDir?: boolean externalDir?: boolean
serialWebpackBuild?: boolean
conformance?: boolean conformance?: boolean
amp?: { amp?: {
optimizer?: any optimizer?: any
...@@ -115,7 +114,6 @@ export const defaultConfig: NextConfig = { ...@@ -115,7 +114,6 @@ export const defaultConfig: NextConfig = {
scriptLoader: false, scriptLoader: false,
stats: false, stats: false,
externalDir: false, externalDir: false,
serialWebpackBuild: false,
turboMode: false, turboMode: false,
eslint: false, eslint: false,
reactRoot: Number(process.env.NEXT_PRIVATE_REACT_ROOT) > 0, reactRoot: Number(process.env.NEXT_PRIVATE_REACT_ROOT) > 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment