Skip to content
Discussion options

You must be logged in to vote

These are Next.js telemetry processes. The detached-flush.js script runs as a separate detached Node.js process to flush anonymous usage statistics to Vercel asynchronously, without blocking your dev server.

The accumulation happens because each next dev run (including after branch switches) spawns a new detached telemetry process, and they are not always cleaned up when the dev server is stopped.

Fix — disable telemetry permanently:

npx next telemetry disable

Or set the environment variable in your shell profile (~/.zshrc / ~/.bashrc):

export NEXT_TELEMETRY_DISABLED=1

You can also add it to your project's .env.local:

NEXT_TELEMETRY_DISABLED=1

Kill the existing accumulated processes:

pki…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ellisio
Comment options

@ellisio
Comment options

Answer selected by ellisio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants