Answers for "upload react build to github"

0

how to deploy react and backend to github pages

npm install gh-pages --save-dev
package.json
//...
"homepage": "http://gitname.github.io/react-gh-pages"
//...
"scripts": {
  //...
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}
git init
Posted by: Guest on October-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language