diff --git a/packages/cli/src/commands/render.ts b/packages/cli/src/commands/render.ts index a7aea8f8e9..8f64052c6c 100644 --- a/packages/cli/src/commands/render.ts +++ b/packages/cli/src/commands/render.ts @@ -209,6 +209,12 @@ Examples: browserPath, }); } + + // Force exit — Node keeps the process alive due to lingering HTTP + // connections (fetch keep-alive pool from update checks / telemetry). + // The 'exit' event handler in cli.ts fires flushSync() which spawns a + // detached child process so telemetry data is not lost. + process.exit(0); }, });