Skip to content

chore(server): remove orphaned worker-utils.ts and getFreePort - #98955

Draft
gilangabdian wants to merge 1 commit into
vercel:canaryfrom
gilangabdian:chore/remove-dead-worker-utils
Draft

gilangabdian wants to merge 1 commit into
vercel:canaryfrom
gilangabdian:chore/remove-dead-worker-utils

Conversation

@gilangabdian

Copy link
Copy Markdown

What?

Removes the worker-utils.ts file and its sole export, getFreePort.

Why?

Following a repository audit for dead code, it appears getFreePort was introduced as a utility for server workers but has since become completely obsolete (likely due to the massive worker/Turbopack refactors).
A global search across the entire repository confirms that there are 0 remaining consumers of getFreePort, and the file itself is never imported anywhere.

How?

  • Deleted packages/next/src/server/lib/worker-utils.ts.
  • Ran local type-checks (pnpm typescript) and test suites to verify no hidden references were left behind. This safely removes unused technical debt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant