Github Pages 渲染空白的 React 应用,在本地正常运行。

huangapple go评论73阅读模式
英文:

Github pages renders blank react app that works fine on local

问题

Link to repo

这在本地工作正常,并且在 https://aermkv.github.io/portfolio2023/ 上添加自定义域名之前也正常工作。后来我将自定义域名删除了,但仍然出现混合内容错误的空白页面(见下文)。

Github Pages 渲染空白的 React 应用,在本地正常运行。

当我尝试添加然后删除自定义域名时发生了什么变化,我如何将其恢复到正常工作状态?我的理解是,即使与自定义域名链接(我正在尝试让我的当前 Squarespace 域加载此项目),[用户名].github.io/[项目] 仍然应该正常工作。

谢谢

英文:

Link to repo

This is working fine on local and was working fine at https://aermkv.github.io/portfolio2023/ before I tried adding a custom domain through GitHub pages. I have since removed it, but I am still getting a blank page with the Mixed Content errors (see below).

Github Pages 渲染空白的 React 应用,在本地正常运行。

What changed when I tried to add and then removed the custom domain and I how do I get it back to working condition? My understanding was that even once linked with the custom domain (I'm trying to have my current squarespace domain load this project), the [username].github.io/[project] would still work fine.

Thanks

答案1

得分: 1

github.io 网站对我来说正常加载.. 除非你已经修复了,否则我怀疑是你的浏览器缓存。尝试清除缓存和Cookie,然后再运行它。

可工作的复制品

希望这有所帮助!

英文:

The github.io site is loading fine for me.. Unless you already fixed it my suspect would be your browser cache. Trying clearing cache and cookies before running it again.

Working Repro

Hope this helps!

huangapple
  • 本文由 发表于 2023年6月13日 03:06:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76459621.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定