Fix npm run build Failures After npm install - How to Fix Nginx 'Upstream Connection Refused' Error-Git --allow-unrelated-histories: Preserve All Commits

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