在gh页中创建反应应用程序主机(404错误)

时间:2019-11-30 07:32:58

标签: reactjs github http-status-code-404 github-pages

我正尝试在gh页上托管此仓库RandomQuote。我安装了gh-pages作为dev依赖项。将我的github存储库添加为Homepage,并在package.json中添加了部署和预部署脚本。我运行npm run deploy可以编译并成功发布。

导航到发布的网站RandomQuoteMachine时出现404错误,无法加载

1)https://sabgalaxy.github.io/randomquotemachine/static/css/2.17e5ed98.chunk.css

2)https://sabgalaxy.github.io/randomquotemachine/static/css/main.5a0b5173.chunk.css

3)https://sabgalaxy.github.io/randomquotemachine/static/js/2.9a79adc1.chunk.js

和js文件夹中的其他文件。当我单击这些链接后,我加载成功,我不明白为什么我无法加载404服务器。

我已阅读Documentation,尝试将其部署为Netlify,并通过各种博客和视频进行了搜索,但可以使其正常运行。有人可以告诉我怎么了吗?谢谢

0 个答案:

没有答案
相关问题