简体   繁体   English

Firebase 托管部署未部署到以下免费域之一:my-project-id.web.app,不在 my-project-id.firebsaseapp.Z4D236D9A2D102C5ZFE6AD1C50DA4BEC05

[英]Firebase hosting deploy is not deployed to one of the free domains : my-project-id.web.app, not on my-project-id.firebsaseapp.com

As I know firebase allows our website to be deployed to free hosting services on two free domains.据我所知,firebase 允许我们的网站部署到两个免费域上的免费托管服务。 Which are:哪个是:

  1. my-project-id.firebaseapp.com,我的项目 id.firebaseapp.com,
  2. my-project-id.web.app我的项目 id.web.app

I am trying to upload my static website to firebase hosting using cmd firebase deploy .我正在尝试使用 cmd firebase deploy将我的 static 网站上传到 firebase 托管。 But it is only uploaded to web.app, while not uploaded to firebaseapp.com.但它只上传到web.app,而没有上传到firebaseapp.com。 Earlier some days it was working well.早些时候,它运行良好。

Please help how to resolve this problem.请帮助如何解决这个问题。

I had faced something similar to this:我遇到过类似的事情:

After a deploy, my site was not getting updated on web.app and when I used Chrome Dev tools, it turned out to be the old code.部署后,我的网站没有在web.app上更新,当我使用 Chrome 开发工具时,它原来是旧代码。 However, the code was updated on firebaseapp.com .但是,代码已在firebaseapp.com上更新。

The actual reason is still unknown to me, but there are a high chance that this is some sort of cache issue.我仍然不知道实际原因,但很有可能这是某种缓存问题。 I was testing my site on 'web.app' like a lot of time, many refreshes and deploys..我在“web.app”上测试我的网站很长时间,很多刷新和部署..

I just Disabled Cache during testing thereafter.此后的测试期间我只是禁用了缓存。

在此处输入图像描述

I faced no such issue after that...之后我没有遇到过这样的问题...

Try hard refresh or whatever it is called using Ctrl + Shift + R and Ctrl + F5尝试使用Ctrl + Shift + RCtrl + F5进行硬刷新或任何调用

This is unexpected as all Firebase Hosting applications should behave identically on web.app and firebaseapp.com .这是出乎意料的,因为所有 Firebase 托管应用程序在web.appfirebaseapp.com上的行为应该相同。 I'd recommend reaching out to Firebase Support for help.我建议联系 Firebase 支持寻求帮助。

I faced the same problem when using Chrome.我在使用 Chrome 时遇到了同样的问题。 I tried Edge and both URLs worked fine.我尝试了 Edge,两个 URL 都运行良好。 It's probably some setting in Chrome.这可能是 Chrome 中的一些设置。 I tried disabling cache but that didn't help.我尝试禁用缓存,但没有帮助。 Test with another browser.用另一个浏览器测试。

I am having the same problem in 2022. I tried three different browsers, incognito mode, even installed a new browser, ran Firefox in Troubleshoot Mode, tried hard-refresh, and powered off my computer.我在 2022 年遇到了同样的问题。我尝试了三种不同的浏览器,隐身模式,甚至安装了新的浏览器,在故障排除模式下运行 Firefox,尝试硬刷新,然后关闭了我的计算机。 I even tried it on another computer in the home that had not been used since before the app was written.我什至在家中的另一台计算机上尝试过,该计算机在编写应用程序之前就没有使用过。 .firebaseapp.com has always loaded just fine, but.web.app gets the "Site Not Found" error message. .firebaseapp.com 总是加载得很好,但是.web.app 收到“未找到站点”错误消息。 I contacted Firebase support, and they replied that both sites were live, and sent me screenshots showing it working on their computers.我联系了 Firebase 支持,他们回复说这两个网站都是实时的,并向我发送了屏幕截图,显示它在他们的计算机上运行。 I checked my phone, and it worked...but only if the phone is using data.我检查了我的手机,它可以工作……但前提是手机正在使用数据。 When connected to Wifi, it still shows "Site Not Found."当连接到 Wifi 时,它仍然显示“未找到站点”。 I asked a family member to check it on their computer, and it worked fine.我请一位家庭成员在他们的电脑上检查它,它工作正常。 I don't really understand this stuff much, but it seems specific to my Wifi connection - and not just my computer.我不太了解这些东西,但它似乎特定于我的 Wifi 连接 - 而不仅仅是我的电脑。 Weird.诡异的。 Anyhow, I hope this helps someone.无论如何,我希望这对某人有所帮助。

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

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