Fix npm run build Failed on macOS: Common Causes and Solutions - ERR_NAME_NOT_RESOLVED Troubleshooting Steps-Nginx Upstream Connection Refused Fix Guide

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.