简体   繁体   English

在 Github 页面上发布站点后 localhost:3000 中的奇怪行为?

[英]Weird behaviour in localhost:3000 after publishing the site on Github Pages?

I've a trouble after publishing my portfolio website online into the Github pages.将我的投资组合网站在线发布到 Github 页面后,我遇到了麻烦。 Before the published it works just fine but when I publish this and then I want to update some data into website I see all the website visual-effect fully spoiled.在发布之前它工作得很好但是当我发布这个然后我想将一些数据更新到网站时我看到所有网站的视觉效果都被破坏了。

I also create another folder and bring the all files and code into new folder but it also looks like the same.我还创建了另一个文件夹并将所有文件和代码放入新文件夹,但它看起来也一样。

local host:3000 error into the "console" localhost broken img-1 , fully broken styles and fonts .本地主机:3000 错误进入“控制台”本地主机损坏的 img-1完全损坏 styles 和 fonts

Error while trying to use the following icon from the Manifest: http://localhost:3000/portfolio/logo192.png (Download error or resource isn't a valid image)

Here the published website link here it looks like fine into github how that should be look like这里发布的网站链接在这里它看起来很好进入 github 那应该是什么样子

Source code on github github 上的源代码

I rechecked my code and remove the styles.css from public folder and also delete the link of css in html. And import it into "index.js" and works just fine.我重新检查了我的代码,并从公用文件夹中删除了 styles.css,还删除了 html 中 css 的链接。并将其导入“index.js”,工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM