JS Script not loaded in HTML

Hi, I’m trying to deploy a website on Netlify but the JS file is not loaded correctly. In fact, the <script> tag is not even in the website HTML upon inspection while it is there in my github dist folder. I think it may have something to do with root “/” I used in the path: <script src="/dist/main.js"></script>. I need to use root because this JS script is accessed in multiple urls so the relative path won’t work. Can someone help me? Thanks.

hi @AlienKevin - I don’t see any main.js being linked to in the head of the html file you deployed.

Can you look at your deployment history and make sure that that build/deploy went through?

If you see any errors, please post your build log here.