Error page on page refresh

HI,

I have just recently deployed my Vite React TypeScript App to Netlify via my connected GitHub repo. But I always get an error with ‘Page Not Found’ on a refresh of any page. I searched this issue over the internet but couldn’t find much detail. Maybe something is missing in my code, but I have no idea what that could be. I would appreciate help to fix this, please. Below are the deployed site link and the respective GitHub Repo:

Website: https://afrotreff.netlify.app
GitHub Repo: GitHub - Kene-Okoye/afroTreff: Project repository for the afroTeff website

Thanks in advance.

Vite on Netlify | Netlify Docs

There are also countless threads on the forums to look for.