【问题标题】:FireBase not hosting index.htmlFireBase 不托管 index.html
【发布时间】:2021-05-07 18:44:58
【问题描述】:

所以我已按照所有步骤进行操作,并且我确信我的步骤是正确的,但 firebase 仍然没有托管我的 index.html。它显示了甚至不存在的默认 index.html。我的根文件夹下只有 index.html,无论我执行多少次“firebase init”,它都表示该项目是托管的,但没有创建任何 json 文件或 dist 文件或任何其他文件。

firebase 登录 火力基地初始化 你的构建命令在这里 火力基地部署

尝试了以上所有步骤,但没有奏效。需要一些帮助。

【问题讨论】:

    标签: firebase-hosting


    【解决方案1】:

    将你的 html 放入 public/index.html 目录

    当 firebase 要求您覆盖 index.html 文件时输入 n

    按照以下网址中给出的步骤进行操作。

    https://medium.com/@aleemuddin13/how-to-host-static-website-on-firebase-hosting-for-free-9de8917bebf2

    您也可以尝试这些修复。

    Firebase not running index.html file

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-19
      • 2023-03-14
      • 2018-07-13
      • 2020-06-17
      • 2018-08-29
      • 2018-10-27
      • 2017-09-16
      • 2021-06-14
      相关资源
      最近更新 更多