Sets up the environment variable for Firebase to go to the correct DB (dev/production).
It's done by a grunt task called grunt-ng-constant which defines the env vars in the gruntfile itself and creates a config module that includes an ENV constant according to the used grunt task.
To use when developing just run 'grunt serve'.
To work on production DB locally run 'grunt serve:dist'.
When deploying new code to production through the firebase hosting (npm run pre-deploy, npm run deploy) it uses the 'grunt build' task which updates the configuration to the production env.
Sets up the environment variable for Firebase to go to the correct DB (dev/production). It's done by a grunt task called grunt-ng-constant which defines the env vars in the gruntfile itself and creates a config module that includes an ENV constant according to the used grunt task.
To use when developing just run 'grunt serve'. To work on production DB locally run 'grunt serve:dist'. When deploying new code to production through the firebase hosting (npm run pre-deploy, npm run deploy) it uses the 'grunt build' task which updates the configuration to the production env.