I’m trying to publish a React app to Github Pages.I host my pages by from ghpages branch and deployed it but when i run it by setting up all configurations it shows error it shows error. I explored it and found that in index.html my js and css file paths is not correct.It should be start from “//asset/gfd.js or css” but whenever i make changes in main branch my index.html changes and its path set as “/asset/gfd.js or css”.
The problems i face is that when i host it from ghpages branch its index.html file renders my js and css file paths automatically whenever i change it.
Ravi Shankar Tripathi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.