Trying to deploy simple js application and reciving 404 error

site url: https://gifted-gates-4353ed.netlify.app
I am trying to deploy a simple js page from a git repo. The repo contains 3 files .js .html .css there are no frameworks involved. I used the build command npm build and set the base directory to dist, I’m not sure what the build command is here as nothing is compiled but I saw a youtube video that used it and went with it. when I click on the link I get a 404. Thank you in advance!

Hi there,

Did you see this guide yet? This is the best place to start for “Page Not Found” issues.

If you are still seeing issues after following the troubleshooting steps in this guide, please let us know!

Your site is actually deployed but missing an index. Try renaming battleship.html to index.html. Also: you don’t need to set a build command if you’re not using npm or a static site generator.

1 Like