How to Troubleshoot Remote Desktop Connection Issues - Troubleshooting Cloudflare 522: Connection Timeout-Resolve npm run build TypeScript Errors

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