Fix npm run build TypeScript Compilation Errors - How to Resolve ERR_NAME_NOT_RESOLVED with CMD-Nginx Rewrite Rule Loop: Diagnosis and Solution

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