Deploying a React Project to github pages

I have been trying to deploy a react project to github pages but when I try to go to the page it takes me to the 404 page which if I hit the link takes me to the proper homepage. I used vite and react router in this project so I think it has something to do with the react router because I have been able to deploy other react sites when I didn’t use react router in the past. here is link to my github page:
Vite + React

here is the repo:


I would suggest using Netlify, Vercel, or Surge.sh instead. They are just a lot easier and nicer to work with.

Ok thanks I’ll try one of them

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.