Code deployed on netlify does not match with the code version on github

As noted in the deploy log, there is no build step, so Netlify is uploading the files as it. When you visit the deployed site the index.html at the root of the repository is served.

When you deploy the site to Heroku, you are starting a node instance which is then running the app.js. This in turn serve the site from the views directory along with other assets.

The version you are using on Heroku won’t work on Netlify. You cannot spin up a node instance on Netlify. Read more in

If you wish to Express, this is possible, however you will need to turn the current setup into a serverless function. See

If you wish to use Netlify (without Express) you will need to build your site as a static site. You said in your OP that you were using Hugo. This is not the case. You could use Hugo as it is a static generator, and deploy the site it generates to Netlify.