如何从Firebase Hosting中删除html文件?

Irv*_*gga 4 firebase firebase-hosting

例:

我在firebase托管中有三个html文件:

  1. 的index.html
  2. test1.html
  3. test2.html

题:

如何删除html文件test1.html?我很困惑,删除它,是否设置json文件firebase.json还是有其他方法?谢谢你的帮助

mim*_*ing 6

根据您要删除的数量,您有以下两种选择:

删除文件

要删除单个文件,请在本地删除它并重新部署.

$ rm public/foo.html
$ firebase deploy
Run Code Online (Sandbox Code Playgroud)

禁用托管

如果要删除Firebase托管上的整个网站,可以完全禁用托管.

$ 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.
Run Code Online (Sandbox Code Playgroud)