npm i heroku heroku git:remote -a <heroku-app-name>This variable is for fix problem with TS
heroku config:set NPM_CONFIG_PRODUCTION=false This variable is for set production environment
heroku config:set NODE_ENV=productionPuede agregar tantas variables como necesite sus aplicación.
In NestJS app go to package-lock.json and change all fsevents dependencies required removing it and paste this
{
"optionalDependencies": {
"fsevents": "~2.3.2"
}
} {
"engines": {
"node": "^16.x"
}
} git push heroku main