env-cmd -e staging -f .env.staging react-scripts build 와 같이 env-cmd의 -e, -f 옵션을 동시에 사용하는게 안돼서 포기.. 나중에 오픈소스 Contribution 해보면 괜찮을듯??

그래서 생각해낸 최종 대안..

staging 을 cra에서 대응해주지 않으므로.. .local 파일은 포기해야 한다. 딱 저 파일들로 설정 덮어쓸 수 있도록. 이것마저 안되면 그때는, 라이브러리를 덮어쓰던가 eject 를 해야한다.

최종 npm scripts

"scripts": {
  "start": "react-scripts start",
  "build": "react-scripts build",
  "build:staging": "env-cmd -f .env.staging npm run build",
  "test": "react-scripts test",
  "eject": "react-scripts eject"
}