Unverified Commit 0d0dbb6c authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

enable eviction on canary (#94451)

Enable turbopack memory eviction by default on canary

Can be disabled by setting the option to `off` directly.  

Our intent is to simply enable by default (See #94452) but that is
separate so it is easier to revert
parent 2df0562f
...@@ -53,6 +53,7 @@ import { HardDeprecatedConfigError } from '../shared/lib/errors/hard-deprecated- ...@@ -53,6 +53,7 @@ import { HardDeprecatedConfigError } from '../shared/lib/errors/hard-deprecated-
import { NextInstanceErrorState } from './mcp/tools/next-instance-error-state' import { NextInstanceErrorState } from './mcp/tools/next-instance-error-state'
import { Bundler } from '../lib/bundler' import { Bundler } from '../lib/bundler'
import type { MemoryEvictionMode } from '../build/swc/types' import type { MemoryEvictionMode } from '../build/swc/types'
import { isStableBuild } from '../shared/lib/errors/canary-only-config-error'
export { normalizeConfig } from './config-shared' export { normalizeConfig } from './config-shared'
export type { DomainLocale, NextConfig } from './config-shared' export type { DomainLocale, NextConfig } from './config-shared'
...@@ -436,7 +437,9 @@ function assignDefaultsAndValidate( ...@@ -436,7 +437,9 @@ function assignDefaultsAndValidate(
const rawEnv = process.env.TURBO_ENGINE_EVICT_AFTER_SNAPSHOT const rawEnv = process.env.TURBO_ENGINE_EVICT_AFTER_SNAPSHOT
turbopackMemoryEvictionMode = turbopackMemoryEvictionMode =
rawEnv == null rawEnv == null
? 'off' ? isStableBuild()
? 'off'
: 'full'
: rawEnv === '1' || rawEnv === 'true' : rawEnv === '1' || rawEnv === 'true'
? 'full' ? 'full'
: 'off' : 'off'
......
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