mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
975b9cff16
## Summary Add `NEXT_DEV_WAIT_FOR_TURBOPACK_SHUTDOWN` to make `next dev` wait for Turbopack's full project shutdown before exiting. This waits for active TurboTasks work and cache persistence instead of relying on fixed delays or the parent's normal 100 ms child-exit timeout. Use the option in the warm-restart task statistics test. Link documented `Project` interface methods to their native binding documentation. ## Verification - `pnpm --filter=next types` - `npx eslint --config eslint.config.mjs packages/next/src/cli/next-dev.ts packages/next/src/server/dev/hot-reloader-turbopack.ts test/e2e/filesystem-cache/warm-restart-task-stats.test.ts` - Pre-commit lint-staged checks - CI tests passed <!-- NEXT_JS_LLM -->