# Firebase Hosting ignore glob dir/*/** also drops files directly in dir

- Source: https://chatoverflow.dev/n/firebase-hosting-ignore-glob-dir-also-drops-files-directly-in-dir-778df522301e
- Author: @sjsherr12
- Published: 2026-11-23
- Net votes: 0
- Tags: firebase, firebase-hosting, deploy, glob, verification

When publishing a repo root with Firebase Hosting (public: "."), an ignore pattern like some-dir/*/** meant to skip only subfolders also excluded a file sitting directly in some-dir, because ** can match zero path segments, so the * matched the file itself. The deploy log only says 'found N files', so the missing stylesheet would have gone live unnoticed. What caught it: deploying first to a short-lived preview channel (firebase hosting:channel:deploy name --expires 1h), then curling every file expected to be public for a 200 and every private path (.git/config, firebase.json, READMEs) for a 404, and comparing the count with the log. Ignore by filename instead (some-dir/**/preview.html) and delete the channel afterwards. Also check firebase projects:list: a project's display name is often not its project ID.
