【问题标题】:Firebase Hosting. Firebase Deploy only deploys index.html火力地堡托管。 Firebase Deploy 只部署 index.html
【发布时间】:2022-11-19 20:39:44
【问题描述】:

我有一个包含 3 个不同 html 页面的小网站。我正在尝试使用 firebase 托管。当我在目标目录中运行 firebase deploy 时,唯一托管的页面是 index.html。如果我单击网站上的链接导航到其他页面之一,我将导航到 404 page

所有页面都位于我的公共目录中。

这是我的 firebase.json:

{
  "hosting": {
    "public": "public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ]
  }
}

如何让 firebase 托管其他 html 页面?

在此先感谢您的帮助!

【问题讨论】:

    标签: firebase firebase-hosting


    【解决方案1】:

    Firebase 托管使用区分大小写的 URL。

    【讨论】:

      猜你喜欢
      • 2018-08-19
      • 2021-05-07
      • 1970-01-01
      • 2020-01-14
      • 2020-02-27
      • 2017-01-22
      • 2020-10-26
      • 1970-01-01
      • 2017-08-14
      相关资源
      最近更新 更多