I am building my website and I have issues using npm start to preview images in my web-pages.
When using npm start
to preview locally my page all the images and videos cannot be found but when I deploy online using github gh-pages -d build
everything shows just fine.
As you can see no images on localhost: images and videos missing from my page in localhost
But once online no issues: perfectly fine website once online
I use React to build the website and github-pages to host it online. All of my images are located in the public folder and since I am a begginer in front-end I did not try anything funny with my compiling.
Any help would be great because not being able to preview images is quite a pain. I could not find anybody with the same issue and I'm a newbie in front-end stuff :/ Thanks in advance!