You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

部署成功仍遇Firebase Hosting「站点未找到」错误,求排查方案

React应用部署Firebase Hosting后显示「Site Not Found」问题排查

问题描述

React应用部署至Firebase Hosting,部署日志显示成功,但访问托管URL时出现「Site Not Found」错误。本地通过serve -s build可正常运行,说明build流程无误。

已提供信息

  • 已提供完整构建流程及文件夹结构截图
  • 已提供错误截图

firebase.json配置

{
  "hosting": {
    "public": "build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

已执行的排查步骤

  • 检查Firebase控制台「Releases」,确认已部署最新版本;
  • 清除浏览器缓存并在无痕模式测试;
  • 删除现有站点版本清除Firebase Hosting缓存后重新部署:
firebase deploy --only hosting
  • 确认build文件夹包含所有必要文件。

环境信息

  • React: 18.x
  • Firebase CLI: 12.x
  • 托管URL: https://netflix-gpt-47dd8.web.app

问题

请问还需检查哪些内容以解决该问题?


内容的提问来源于stack exchange,提问作者Apoorv singh yadav

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 07:14:51