my netlify site name is https://glittery-choux-94da5a.netlify.app
my git repo link is GitHub - yasharyasaxena/Vanlife
I am deploying this site and on the home page the asset home-hero-img is showing but in the about page the about-hero-img is not although they are in same folder
@yasharyasaxena Your issue is likely to be:
@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 s…
Run your build locally and you’ll see the files it outputs:
View your build output with npm run build && npm run preview
to see the same as on Netlify: