'Images not showing up on GitHub pages when i add a custom domain

I am trying to develop a gallery web with react and host it with github-pages. When i run the npm run deploy all work well with the default domain. But when i add the custom domain the pictures not showing up. I have the pictures in the public folder and in the src i put the follow link src = "gallery/Images/name.jpg" when "gallery" is the name of my main-folder.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source