firebase-config.json for each env and use a switch in source code to determine which to use in the app./__/firebase/init.json (or script in /__/firebase/init.js) that firebase hosting prepares for each project separately so I can init the correct instance of the firebase app for that environment. Also see the blog post hereHi David,
Makes sense. Is there a way my build tools can read the current “active” firebase project (last firebase use [project]) so that can determine which config to bundle in the build? Or do I have to use a flag - which might actually mismatch the project I’m deploying to.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/cb33a23b-4cea-4341-83e8-baf089eb78fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| Alex Memering | | Software Engineer | | meme...@google.com |
firebase setup:web --json{ "status": "success", "result": { "apiKey": "XXXXX", "databaseURL": "https://XXXX.firebaseio.com", "storageBucket": "XXXX.appspot.com", "authDomain": "XXXX.firebaseapp.com", "messagingSenderId": "YYYY", "projectId": "XXXX" }}