裸域在 Firebase 和 Google 域中不工作

Naked Domain not working in Firebase and Google Domain

  1. 我在 Firebase 中创建了一个免费托管帐户并上传了一个单页网站。有效
  2. 我有一个包含 Google 个域的自定义域。我连接了我的自定义域,并在 Google 域 DNS A 记录中添加了 Firebase 提供的两个 IP 地址。连接成功

问题: 当我像 http://moonstarinc.com

一样访问它时,我的网站无法正常工作

但它适用于以下任何 URLs www.moonstarinc.com http://www.moonstarinc.com

我正在尝试为 admob 设置这个 URL - URL: https://moonstarinc.com/app-ads.txt

您可以参考这里:

https://firebase.google.com/docs/hosting/custom-domain#domain-key

Apex domain 
Common inputs include:

@
The apex domain name (for example, example.com)
Leaving the Host field blank
Subdomain   
Common inputs include:

The full subdomain name (for example, app.example.com)
Only the subdomain portion (for example, app only, and leaving out .example.com)
Only www for the subdomain of www.example.com