Hey guys!
I need to use enviromental variables process.env in the config.js. However I am unable to do so in the server only mode.
The config.js is used in the “Webinterface”, this obviously don’t have access to the enviromental variables of Node.js.
I am using balena-MagicMirror (made by me) to have multiple remotely managed MagicMirrors which all contain basically the same config, but differ in a few things that should be defined as enviromental variables.
Anyone know how I can “inject” enviromental variables in the browser with some MagicMirror Module?
Edit: I just created a module that will do this
[card:idoodler/MMM-ENV-Provider]