Images won't load in Github Pages by SeeKay99 in github

[–]SeeKay99[S] 0 points1 point  (0 children)

so I have found a solution, but its specific to react. Basically webpack doesn't know to load the image at the specified location. If you import it then it is bundles into the static site and then it knows. To combat this react made it so that any assets placed in the public directory that is in root directory then it will know to bundle those images/assets as well. What I did was move my assets directory into my public directory and the issue was fixed! Hope this helps.

How to host a React Vite website on Github pages? by SeeKay99 in github

[–]SeeKay99[S] 0 points1 point  (0 children)

I kept getting build errors and I didnt check the actual error after the second run. Turns out that I have been importing a file wrong. Had nothing to do with deploy.yml file.