You will face memory exceed issue if you are gonna build prod on heroku. So free type won’t work.
So try to build in local and serve your dist files using express.
Use same command in PROC file
Heroku local or Heroku local web : verify your changes in local