저장소 - settings - pages에 들어간 다음 브런치에서 main을 선택하고 save를 누르면 호스팅 github주소가 생성된다.
"homepage": "https://dalping.github.io/react-app-shop/",
npm install gh-pages --save
"scripts": {
**"predeploy": "npm run build",
"deploy": "gh-pages -d build",**
"start": "react-scripts start",
"build": "react-scripts build",
npm run deploy
깃허브에 gh-pages 브랜치가 추가된다.
gh-pages 브랜치를 선택
npm run deploy
새로 빌드 되면서 수정된 사항이 업데이트 된다.