React app created with vite works fine locally but when deployed on netfliy, images not showing up.. here's the solution

PLEASE help us help you by writing a good post!
Site name - https://thriving-panda-53d2c9.netlify.app
App works fine locally with images showing properly

Solution - Anyone facing similar issues, please move images from src folder to public folder and give path to images without mentioning public in relative path… for eg. once images folder moved to public folder relative path should be img src= '/images/abc.png and that should resolve the issue.

Thanks,
Polaris430

1 Like

Hi @polaris430 :wave:t6: welcome to the Netlify support forums! :netliconfetti: We’re so glad you are here! Thank you for providing this feedback! We appreciate it greatly. This will help other users who are experiencing similar issues. :smiling_face_with_three_hearts: