Use enviromental variables in server only mode
I need to use enviromental variables
config.js. However I am unable to do so in the server only mode.
config.jsis 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