Javascript and 404

hi guys, I created a project in JS and it is giving the 404 error, I added a netfily file like the one below but it still gives this error, does anyone know how to solve it?

@Rafael1 Your post isn’t showing any file or screenshot, or linked anywhere.

Please provide more detail.

Hi, here is the link to the file on GitHub that I deployed, I used Produtos2.js in the src

I think the netlify pro configuration file might be wrong

@Rafael1 The default file that is loaded when going to your Netlify site is index.html, your repository does not contain an index.html file.

If produtos.html is your main file, then you should rename it to index.html or you can access it by going to https://{yoursitename}.netlify.app/produtos

1 Like