Here is the code i added to the app that caused it to crash on Heroku servers, removing these codes cause the app to work properly on heroku my app works with these code locally
const exphbs = require('express-handlebars')({extname:"hbs"})
app.engine('hbs', exphbs);
app.set('view engine', 'hbs');
here is the logs below
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/h5Mer.png