i was working with my project throug the studio workspace , and during some of the modifcations did by gemini , i started getting 404 error page not found for all my pages , i tried to rollback to previous vesrion restoration , but it is useless , i tried fixing error through prototyper but each time it seems gemini is missing things up more and more , i dont know what to do any help
although i have a version of my project published and working , can i get this version back to the firebase studio , keeping in my mind i have did /clear order more than once in my prototyper , and ideas would be great
1 Like
A 404 error in Firebase hosting usually points to either a missing rewrite rule in your firebase.json or a mismatch in your deployment path. Gemini likely altered your project files or configs, so I’d suggest:
-
Check firebase.json → ensure you have a proper hosting section with "public": "dist" (or your build output folder).
-
If it’s a single-page app (Next.js/React/Vue), add a rewrite:
"rewrites": [
{ "source": "**", "destination": "/index.html" }
]
-
Run firebase deploy --only hosting again.
-
If Gemini changed dependencies, confirm your package.json + lockfile are consistent, and re-run your build before deploying.
Triage Tip: Deploy with the --debug flag — it will print exactly what’s missing and why the 404 is triggered.
If you want more eyes + guided fixes, we’ve set up a Signal Beacon Slack channel where you can drop logs/configs safely and get faster triage. Let me know if you want an invite.