Skip to content

Commit

Permalink
Revert "test(next-dev): hard fail if next-dev runs with turbopack int…
Browse files Browse the repository at this point in the history
…enral flag" (#51327)

Reverts #51308
  • Loading branch information
ijjk committed Jun 15, 2023
1 parent a7c31cc commit f9ae5b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/next/src/cli/next-dev.ts
Expand Up @@ -295,12 +295,6 @@ const nextDev: CliCommand = async (argv) => {
} else {
let cleanupFns: (() => Promise<void> | void)[] = []
const runDevServer = async () => {
if (process.env.__INTERNAL_NEXT_DEV_TEST_TURBO_DEV) {
require('console').error(
`[ERROR]: Incorrect mode: turbopack test mode is force enabled, shouldn't run dev server`
)
process.exit(1)
}
const oldCleanupFns = cleanupFns
cleanupFns = []
await Promise.allSettled(oldCleanupFns.map((fn) => fn()))
Expand Down

0 comments on commit f9ae5b7

Please sign in to comment.