如何更改Firebase项目目录

Fai*_*ikh 2 android firebase firebase-hosting

我已经通过引用以下文档将Firebase托管项目安装到我的机器中:

https://firebase.google.com/docs/hosting/

现在,我想更改项目目录的位置.我应该为此做什么?

到目前为止,我已尝试重新登录并重新初始化项目,但它没有提供再次指定目录的选项.

Mod*_*man 9

转到位于项目根目录中的名为firebase.json的文件,并将托管中名为public的字段更改为所需的目录.

{ 
"database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "public", <------ This points to directory
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
Run Code Online (Sandbox Code Playgroud)