[英]Firebase Custom Domain 404 Error on subdomain
如何在自定义域名上解决此404错误?
在这个子域https://bookmarked.fun/publicprofile/IanHunter上,我的自定义域出现404错误。
在firebase的应用程序部署网站上,我没有任何问题https://bookmarked-d5236.firebaseapp.com/publicprofile/IanHunter 。
将重写添加到firebase.json文件中可以解决路由404问题。
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "build",
"rewrites": [
{"source":"**", "destination": "/index.html"
}]
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.