Fix npm run build Exit Code 1: Common Causes and Solutions - Troubleshooting Nginx Backend Connection Refused-Cloudflare 521 Error During Setup – How to Resolve

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