示例:
我在 firebase 托管中有三个 html 文件:
- index.html
- test1.html
- test2.html
问题:
如何删除html文件test1.html?我很困惑要删除它, 是否设置json文件firebase.json或者还有其他方法? 感谢您的帮助
最佳答案
根据您想要删除的数量,您有几个选项:
删除文件
要删除单个文件,请在本地删除它并重新部署。
$ rm public/foo.html
$ firebase deploy
禁用托管
如果您想删除 Firebase 托管上的整个网站,您可以 disable hosting entirely .
$ firebase hosting:disable
? Are you sure you want to disable Firebase Hosting?
This will immediately make your site inaccessible! Yes
✔ Hosting has been disabled for example-firebase. Deploy a new version to re-enable.
关于firebase - 如何从 Firebase 托管中删除 html 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39202179/