I am working on my first Astro website and got it most of the way put together but at some point it started throwing 404 not found errors for every path that I've created and I've been trying all night to figure out how to fix this. I thought I already posted this about an hour ago but I can't seem to find anything confirming that so I'm sorry if this is posted twice but I want to make sure that I get it on here. I built a blank project with no typescript and have disabled all typescript checking in vscode. I currently have no errors. I can't seem to find any reason why this 404 error is coming up or anything about anybody who's had a similar problem. Can you think of any reason it would be throwing this error? I have tried clearing the registry I tried clearing the browser cash and cookies I've tried using npm instead of yarn but tried them in separate builds so that they didn't interfere with each other. I've got nothing, so any help would be greatly appreciated.
#Yarn Server Shows 404 Not Found Path (All Paths Throw Same Error).
4 messages · Page 1 of 1 (latest)
really hard to guess without a reproduction of the issue. if you were using source version control like git, you can try going back to an older commit where things worked and then use something like [git bisect](https://git-scm.com/docs/git-bisect) or do a manual binary search through the commits to find the commit that broke things.
Along with that, you could run the command npx astro build to build the site. I am assuming you are running Astro in "Static Site Generator (SSG)" mode. Then run the command npx http-server dist/ to serve the built files. Open the web server link shown after running that command, hopefully you should see your site.
If the above works, then atleast your site is configured properly and Astro is somewhat working.