add support for EXPERIMENTAL_TURBOPACK in next build (#53535)
### What? EXPERIMENTAL_TURBOPACK env var puts next build into turbopack mode ### Why? the test cases set this flag
This commit is contained in:
parent
57ce466502
commit
82280ea82b
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ const nextBuild: CliCommand = (argv) => {
|
|||
printAndExit(`> No such directory exists as the project root: ${dir}`)
|
||||
}
|
||||
|
||||
if (args['--experimental-turbo']) {
|
||||
if (args['--experimental-turbo'] || process.env.EXPERIMENTAL_TURBOPACK) {
|
||||
process.env.TURBOPACK = '1'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue