react scrip for deplot heroku 1

react scrip for deplot heroku

"scripts": { 
  "dev": "react-scripts 
  "start", "start": "serve -s build", 
  "build": "react-scripts build", 
  "test": "react-scripts test --env=jsdom",
  "eject": "react-scripts eject", 
  "heroku-postbuild": "npm run build" 
},

Here is what the above code is Doing:
1. We’re adding a new script called “heroku-postbuild”
2. We’re telling Heroku to run the build script after it installs all the dependencies
3. We’re telling Heroku to run the start script after the build script is finished

Similar Posts