Fix npm run build Failed After Git Pull - Mac DNS_PROBE_FINISHED_NXDOMAIN Troubleshooting Guide-Recover Lost Commits from Detached HEAD

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.