[英]Why firebase custom domain don't return index.html?
我在 firebase 有一個項目,有兩個自定義域,如圖firebase 控制台所示。
第一個colademonofrozen.cl/我得到 index.html 文件 OK,但是第二個www.colademonofrozen.cl/我得到 404 not found。
這個案例有些奇怪的是www.colademonofrozen.cl/anything顯示 index.html 文件 OK。
這是托管配置:`
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/api/**",
"function": "app",
"region": "us-central1"
},
{
"source": "/admin",
"destination": "/admin.html"
},
{
"source": "**",
"destination": "/index.html"
}
]
},
`
我為這個項目做了很多工作,我真的很感激任何想法。
我也感謝任何確認該域顯示錯誤頁面的人,因此如果它開始工作則不能忽略該問題。
不幸的是,我為其創建項目的產品的背面 label 已經打印出來了。 看背面標簽!
我更改以下 DNS 記錄:
姓名 | 類型 | 價值 |
---|---|---|
www.colademonofrozen.cl。 | 別名 | colademonofrozen.cl |
為了:
姓名 | 類型 | 價值 |
---|---|---|
www.colademonofrozen.cl。 | 一種 | 199.36.158.100 |
現在工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.