re: Deploying a React app with React-Router and an Express Backend VIEW POST

TOP OF THREAD FULL DISCUSSION
re: What is the purpose of npm install --only=dev in the heroku-postbuild script for building the client? I tried removing that bit and it still worked.
 

At the time of writing, I believe that Heroku installed only the production dependencies by default, ignoring the development dependencies under devDependencies. npm install --only=dev had to be added for the project to build correctly. I think this default behavior has been changed so it may no longer be needed!

code of conduct - report abuse