How do I fix this 404 error on my custom domain name?
At this subdomain https://bookmarked.fun/publicprofile/IanHunter I get a 404 error on my custom domain.
On firebase's app deploy website, I have no issues https://bookmarked-d5236.firebaseapp.com/publicprofile/IanHunter .
Adding in the rewrites to the firebase.json file fixed the routing 404 issue.
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "build",
"rewrites": [
{"source":"**", "destination": "/index.html"
}]
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.