添加目标后firebase部署出现404错误
我将目标添加到firebase项目中,因为将有子域。我以前做过,但从未遇到过这个错误。因此,我在firebase控制台中创建了该项目。然后我在我的终端打开了这个项目添加目标后firebase部署出现404错误,firebase,firebase-hosting,Firebase,Firebase Hosting,我将目标添加到firebase项目中,因为将有子域。我以前做过,但从未遇到过这个错误。因此,我在firebase控制台中创建了该项目。然后我在我的终端打开了这个项目 firebase init ... chose existing project // Website firebase deploy // website is now live at firebase domain 然后我添加了一个目标 firebase target:apply hosting website Website
firebase init
... chose existing project // Website
firebase deploy // website is now live at firebase domain
然后我添加了一个目标
firebase target:apply hosting website Website
现在我转到我的firebase.json文件,它看起来像这样
{
"hosting": {
"target": "website" // this causes Error: 404, Requested entity was not found
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
在添加该目标并在终端中运行firebase deploy后,出现错误。也许我还需要将目标添加到firebase.rc中