Skip to content

Commit

Permalink
run validation logic for TURBOPACK too (#55379)
Browse files Browse the repository at this point in the history
### What?

TURBOPACK=1 should behave like `--turbo`


Closes WEB-1560

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
sokra and kodiakhq[bot] authored Sep 14, 2023
1 parent 3130189 commit 4ec555e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/src/cli/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ const nextDev: CliCommand = async (args) => {

if (args['--turbo']) {
process.env.TURBOPACK = '1'
}

if (process.env.TURBOPACK) {
await validateTurboNextConfig({
isCustomTurbopack: !!process.env.__INTERNAL_CUSTOM_TURBOPACK_BINDINGS,
...devServerOptions,
Expand Down

0 comments on commit 4ec555e

Please sign in to comment.