hosting gh-pages on custom domain, white empty page

后端 未结 3 1775
南方客
南方客 2021-01-15 01:44

im new to coding and need some help. I made a react project (using create-react-app), and the website has been running on my gh-pages branch

(heres my repo: https:/

3条回答
  •  别那么骄傲
    2021-01-15 02:38

    Simcha's solution worked for me temporarily. Every time I was deploying to Github pages, the index.html file was automatically reverted back to "/theNameOfMyApp/static/.... So I managed to get rid of this problem, by removing the "/theNameOfMyApp" part from the homepage: ... in package.json. So in package.json there I have: "homepage": "http://themitsoss.github.io".

提交回复
热议问题