Background:
Add helper to differentiate firestore fetches between dev, staging, and prod environment.
Example:
If in env var env="dev"
then firestore().collection('ecosystems_'+getEnv()).get()
will fetch from ecosystems_dev firestore collection.
Tested on:
-
iOS -
Android