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


code deployed on netlify does not match with the code version on github, tried deploying using netlify cli, github repo, drag and drop of local files.

Netlify is taking previous version of the code.(in all cases)

Tried following but none working

  • unregistered service workers
  • no cache, hugo used for the site

Hi @AkhilK

Can you provide a link to the site in question?

Can you also show what you are seeing on the live site versus what you are expecting to see?

Hello @coelmay,
current deployed site *
expected to be: *

If you download the build Zip file, does it contain correct, or incorrect data?

Have you tried “Clear cache and deploy site”?

I have tried clear cache and deploy site but not working.
when I download, I see code base(deployed in netlify) is different to that of github

In the deploy log under Deploy Site you’ll see something similar to this

7:33:24 AM: ────────────────────────────────────────────────────────────────
7:33:24 AM:   3. Deploy site                                                
7:33:24 AM: ────────────────────────────────────────────────────────────────
7:33:24 AM: ​
7:33:24 AM: Starting to deploy site from 'dist'
7:33:24 AM: Creating deploy tree 
7:33:24 AM: Creating deploy upload records
7:33:25 AM: 0 new files to upload
7:33:25 AM: 1 new functions to upload
7:33:31 AM: Site deploy was successfully initiated
7:33:31 AM: ​
7:33:31 AM: (Deploy site completed in 6.1s)

Does it show new files were uploaded, it does it show 0 (zero) like the example above?

Can you share the repository you are deploying from?

Hello @coelmay, we see few files updated,
and please find the repo *

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.

Thanks @coelmay, got the issue now.