How to Fix Git Detached HEAD and Checkout a Branch - npm run build Fails: Missing Environment Variables Fix-Docker Compose PostgreSQL Port Conflict

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