Image for post
Image for post

Deploy Firebase Apps to Different Environments

Use different configs for each of your Firebase environments

Google’s Firebase is a great system and environment to quickly build web apps. However, there are a few tricky things to work around, such as deploying to different environments.

dotenv to the rescue

Here is what I do to create a staging and production environments with different configurations in Firebase.

About Author

Geoffrey Bourne is co-founder of Ayrshare, an API-first platform to automate your social media posts with a few lines of code.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store