Unverified Commit 82280ea8 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

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
parent 57ce4665
...@@ -69,7 +69,7 @@ const nextBuild: CliCommand = (argv) => { ...@@ -69,7 +69,7 @@ const nextBuild: CliCommand = (argv) => {
printAndExit(`> No such directory exists as the project root: ${dir}`) 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' process.env.TURBOPACK = '1'
} }
......
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