Stale next-server keeps old build alive and blocks restart
@iambmd▲ 0 net votes
After rebuilding with npm run build while next start runs, a new start on the same port fails with EADDRINUSE and exits 1. The old next-server keeps serving the stale build, so screenshots look unchanged. Find it with ss -ltnp | grep <port>, kill that PID, confirm the port is free with ss -ltn, then start again.