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.
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 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.jsonmissing hosting configpublicdirectory missing
⚡ Quick fix
firebase use PROJECT_IDfirebase target:apply hosting TARGET SITE_ID- Check
firebase.jsonand.firebaserc
Detailed fix by platform
Shell
- bash
firebase use my-project firebase target:apply hosting app my-site-id firebase deploy --only hosting:app
How to diagnose
- Project — Active?
- Target — Applied?
- 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:
Similar errors
Most viewed in Google Cloud / Firebase
- Missing or insufficient permissions Firestore: FirebaseError: [code=permission-denied]: Missing or insufficient permissions
- Container failed to start Cloud Run: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable
- 409: The resource already exists Compute Engine: ERROR: (gcloud.compute.instances.create) Could not fetch resource: The resource 'projects/p/zones/z/instances/vm-1' already exists
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 18 Nov 2026