@ayush1 You are using Vite, so your issue is the same as many others using Vite.
You haven’t read or understood the applicable documentation for Vite.
Vite isn’t magic and it won’t work with whatever random project structure you throw at it.
You should read the Vite Static Asset Handling Documentation, in particular the section concerning the Public Directory.
Note: Anyone else encountering this thread that is using Vite and has an issue with images, favicons, or _redirects
files (or other static assets!) not showing up in their deployed site, should just read the documentation linked.