我正在关注this tutorial来构建角度应用程序。我在firebase上创建了项目并成功部署了它。
i deploying hosting
i hosting: preparing dist/test-app directory for upload...
+ hosting: 7 files uploaded successfully
- Deploy complete!
Project Console: https://console.firebase.google.com/project/test-app-38199/overview
Hosting URL: https://test-app-38199.firebaseapp.com
我的firebase.json是这样的:
{
"hosting": {
"public": "dist/test-app",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
但是在我的浏览器中,我看到的是:
我遇到了类似的问题,Angular应用程序不再与Firebase兼容。我可以在任何其他地方托管我的角度应用程序,它运行正常,但当部署到公共文件夹时,应用程序将无法运行。这几乎就像谷歌故意禁用Angular一样。