DEV Community

Discussion on: Causes of Heroku H10-App Crashed Error And How To Solve Them

Collapse
 
kaitlynlynette profile image
Kaitlyn Rodriguez

Woooo! It's June 08, 2021 and this article keeps on giving. It worked for me! Thank so much.

Followed this exactly,

"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"
}

(start with npm run dev to run it locally )

2.) copied the above code("scripts") in place of my previous code "scripts" in my package.json file
3.) git commit -am "new update"
4.) git push heroku master

Collapse
 
lawrence_eagles profile image
Lawrence Eagles

Thanks Kaitlyn Rodriguez.