首页 > 解决方案 > FireBase not hosting index.html

问题描述

So I have followed all the steps and I am sure my steps are correct but still firebase is not hosting my index.html. it is showing default index.html which doesn't even exists. I have only index.html under my root folder and no matter how many times I do 'firebase init', it says that the project is hosted but no json file or dist file or any other file is ever created.

firebase login firebase init your-build-command-here firebase deploy

Tried all the above steps but didnt work. Need some help.

标签: firebase-hosting

解决方案


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

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

在此处输入图像描述

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

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

你也试试这些修复。

Firebase 没有运行 index.html 文件


推荐阅读