mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
2cee98ab97
## Summary Turbopack dev never removes the content-hashed chunks it supersedes, so `.next/dev` grows without bound. Webpack dev avoids this by wiping `distDir` on every start. Adds a `maxAgeMs` argument to `recursiveDeleteSyncWithAsyncRetries`: delete files whose mtime is at least that old, remove directories once empty. Turbopack dev passes one week. ## Verification - `pnpm test-unit test/unit/recursive-delete.test.ts` - ~Not run:~ dev-server behavior against a real `.next/dev` <!-- NEXT_JS_LLM -->