Fix Nginx 502 Bad Gateway: Upstream Connection Refused - Troubleshooting Node.js Heap Out of Memory (Code 134)-Increase Node.js Memory Limit for npm Scripts

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