I recently deployed a static using HTML, CSS, JS/JQuery, and Scss. I am using Vite as my bundler. The project is called "restaurant". Please note that the project works perfectly in my local environment.
However, right after deployment, I noticed that the functionalities that are implemented in Jquery don't work at all. Also, none of the other pages except the index page show up.
For instance - I was given this link for my project - https://restaurant-fawn-iota.vercel.app/
Visiting this shows the index.html page. HTML and CSS seems fine but the Jquery buttons don't work. When I try to visit other pages like -
https://restaurant-fawn-iota.vercel.app/page-2.html or https://restaurant-fawn-iota.vercel.app/page-2
I am getting 404 error.
Please help
Current behavior - Jquery functionalities not applying. Vercel can't find other pages except the index page.
Expected behavior - Jquery functionalities work. Vercel finds all pages.



So, I did it like this (you must do it for all warnings):


