Unverified Commit bdcfe429 authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

Enable GC by default on canary (#99596)

The turbopack gc can prevent the filesystem cache from growing over time
and a smaller cache means faster reads.
parent a8d6f7a0
......@@ -63,6 +63,7 @@ import { hrtimeBigIntDurationToString } from '../build/duration-to-string'
export { normalizeConfig } from './config-shared'
import { verifyDistDir } from '../lib/dist-dir'
import { isStableBuild } from '../shared/lib/errors/canary-only-config-error'
export type { DomainLocale, NextConfig } from './config-shared'
const REACT_18_DEPRECATION_WARNING =
......@@ -523,7 +524,8 @@ function assignDefaultsAndValidate(
rootTtlMs: turbopackGc.rootTtlMs,
}
} else {
turbopackGcOptions = undefined
// Enable by default on canary releases.
turbopackGcOptions = isStableBuild() ? undefined : {}
}
;(result as NextConfigComplete).experimental.turbopackGcOptions =
turbopackGcOptions
......
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