使用具有自定义 Google 域的 GitHub 页面时的空白网页

Blank webpage when using GitHub pages with custom Google domain

我正在尝试将我的域名从 seanhetzel.github.io/seanhetzel 更改为 seanhetzel.com。我在 GitHub 页面设置中设置了自定义域,它现在有一个包含 seanhetzel.com 的 CNAME。我还使用 Google 设置了 DNS 记录。它已经超过 48 小时,所有加载都是空白和页面 404 错误。该站点使用 seanhetzel.github.io,我使用的是 HashRouter。有什么我想念的吗?

谢谢!

GitHub pages 建议创建一个名为 username.github.io 的新存储库,其中 username 是您在 GitHub.

上的用户名(或组织名称)

但我只看到https://github.com/Seanhetzel/sean-hetzel, not https://github.com/Seanhetzel/Seanhetzel

适当地命名存储库可能是缺失的部分。

OP Sean Hetzel adds :

I changed the name of the repository to Seanhetzel with a capital S but realized that google domains didn't allow for caps in their CNAME record and changed Seanhetzel.github.io to seanhetzel.github.io.
So I changed my GitHub username and repository name to sean-hetzel and updated the google domain to reflect this.

我忘记在 package.json 中更改我的主页。

变化中:

"homepage": "https://seanhetzel.github.io/sean-hetzel"

"homepage": "https://seanhetzel.com"

package.json 中修复了空白页面,因为现在它正在加载实际主页。