Hi everyone,
I’m currently working with Firebase Studio, and while the tool is very promising for rapid development, I’m struggling with how to properly set up multiple environments, particularly Development (DEV) and Production (PROD).
There seem to be conflicting or incomplete suggestions across the documentation, in-tool chatbots, and external resources. Some of the approaches I’ve seen include:
- Using
.env.<project>
files - Managing secrets via
apphosting.yaml
and the Secret Manager - Leveraging NIX-style config switches
- Others suggest manually managing environments via Firebase projects and build pipelines outside the Studio
However, within Firebase Studio itself, I feel like there’s very limited control. For instance:
- The “Publish” functionality gives no clear indication of which environment is being deployed to.
- I couldn’t choose the region for hosting or functions — it just deployed without asking.
- It’s unclear how to prevent accidentally overwriting production during development.
My question is:
How do you properly structure and manage a multi-environment architecture (at minimum, DEV and PROD) when using Firebase Studio from the beginning?
Some sub-questions:
- Is there official support for environment separation in Firebase Studio workflows?
- What’s the recommended way to manage secrets per environment?
- Can Studio projects be linked to specific Firebase projects per environment?
- How can one test changes in DEV and explicitly promote to PROD?
Any real-world examples, docs, or workflows would be greatly appreciated. I want to ensure I’m not misusing the tool or missing some critical setup steps early on.
Thanks a lot in advance!