在Facebook上粘贴链接以将人们定向到特定路线时,出现了一个奇怪的问题。
当我将链接粘贴到Feed中时,我不明白为什么链接显示“找不到页面”作为网站的预览。是因为我正在使用type=
和g=
之类的动态查询吗?
因为当人们单击链接时,它可以正常工作,但是预览仍然显示404.html
这是我的firebase.json文件:
"database": {
"rules": "database.rules.json"
},
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
],
"source": "functions"
},
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [ {
"source": "./cacheImg.@(jpg|jpeg|gif|png|webp)",
"headers": [ {
"key": "Cache-Control",
"value": "max-age=7200"
} ]
} ]
},
"storage": {
"rules": "storage.rules"
}
}