Hi,
We're currently in the process of upgrading our Firebase functions to the second generation. While exploring the available options for defining environmental variables in gen2, I've found that none of them address a very common use case, leaving me at a standstill.
A significant portion of the code executed within our functions relies on npm modules that we've implemented. These npm modules, however, require environmental variables for proper setup. Unfortunately, in the new gen2 environment, there doesn't seem to be a straightforward way to configure `process.env` while loading our functions.
In essence, our functions depend on an npm module which in turn depends on an environmental variable. How can I ensure that the code within `index.js` in the `node_modules` directory functions correctly?
console.info(`process.env.TI_ENVIRONMENT_NAME: ${process.env.TI_ENVIRONMENT_NAME}`);
Thankks