MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.
Use enviromental variables in server only mode
-
Hey guys!
I need to use enviromental variables
process.env
in theconfig.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