Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/next/src/cli/next-dev.ts
Original file line number Diff line number Diff line change
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