1. Summarize the problem
We are using a configuration module (node) that allows us to set various configuration options, for example database settings or other api endpoint settings with our firebase hosted app.
if the APP_ENV variable is set to 'dev', then it points to the dev api's instances and database settings, same with 'test', and 'prod'.
When running in a container, we simply have a shell script that sets APP_ENV and then runs the server, and the right configuration settings are chosen.
How do we do this with Firebase hosting?
Using: https://github.com/lorenwest/node-config
2. Provide background including what you've already tried
Looked over documentation, found nothing.
3. Show some code
https://github.com/lorenwest/node-config
4. Describe expected and actual results including any error messages
Expected: Deploy to Firebase and have the web app access the correct resources (api end points, database settings), based on environment (dev, test, prod).