Firebase Hosting deploy: Could not find site / hosting target not configured

firebase deploy --only hosting can't resolve the site or target in firebase.json.

Exact message you may see Could not find siteError: Hosting site not foundHosting: Could not find a siteError: Cannot understand what targets to deploy/serve.Hosting site ID is invalid
Seen on: Firebase

Meaning

Run firebase use PROJECT, apply the target (firebase target:apply hosting app SITE_ID), make sure firebase.json has the matching "target" or "site", and that the site exists in the console (multi-site setups). The public folder must exist.

Common causes

  • No active project / wrong project
  • Hosting target not applied
  • Site ID typo or deleted
  • firebase.json missing hosting config
  • public directory missing

⚡ Quick fix

  1. firebase use PROJECT_ID
  2. firebase target:apply hosting TARGET SITE_ID
  3. Check firebase.json and .firebaserc

Detailed fix by platform

Shell

  1. bash
    firebase use my-project
    firebase target:apply hosting app my-site-id
    firebase deploy --only hosting:app

How to diagnose

  1. Project — Active?
  2. Target — Applied?
  3. Site — Exists?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

App Engine — App Engine deploy failed: invalid app.yaml (runtime not supported / entrypoint / handlers) (Google Cloud / Firebase)App Enginebackend spec — Firebase deploy: User code failed to load. Cannot determine backend specification (Google Cloud / Firebase)backend speccache — Firebase Hosting serves old files after deploy (CDN cache and Cache-Control headers) (Google Cloud / Firebase)cachecustom domain — Firebase Hosting custom domain: SSL certificate pending / needs setup (DNS records) (Google Cloud / Firebase)custom domaindeploy — Firebase Functions deploy failed: Node runtime/engine unsupported or build error (Google Cloud / Firebase)deployFirebase Hosting: Page Not Found on refresh (SPA routes) — Firebase Hosting: Page Not Found — This file does not exist and there was no 404.html or index.html found in the document root (Google Cloud / Firebase)Firebase Hosting: Pag…Firebase: Your project must be on the Blaze (pay-as-you-go) plan — Firebase CLI: Error: Your project my-app must be on the Blaze (pay-as-you-go) plan to complete this command. Required API cloudbuild.googleapis.com can't be enabled until the upgrade is complete (Google Cloud / Firebase)Firebase: Your projec…project — Firebase CLI: Failed to get Firebase project / Error: Not authorized, or HTTP Error 403 on project (Google Cloud / Firebase)projecthosting

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.