Unverified Commit f9ae5b7f authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Revert "test(next-dev): hard fail if next-dev runs with turbopack intenral flag" (#51327)

Reverts vercel/next.js#51308
parent a7c31cc5
......@@ -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()))
......
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