<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use enviromental variables in server only mode]]></title><description><![CDATA[<p dir="auto">Hey guys!</p>
<p dir="auto">I need to use enviromental variables <code>process.env</code> in the <code>config.js</code>. However I am unable to do so in the server only mode.</p>
<p dir="auto">The <code>config.js</code> is used in the “Webinterface”, this obviously don’t have access to the enviromental variables of Node.js.</p>
<p dir="auto">I am using <a href="https://github.com/idoodler/balena-MagicMirror" target="_blank" rel="noopener noreferrer nofollow ugc">balena-MagicMirror</a> (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.</p>
<p dir="auto">Anyone know how I can “inject” enviromental variables in the browser with some MagicMirror Module?</p>
<p dir="auto"><strong>Edit: I just created a module that will do this</strong></p>
<p dir="auto">[card:idoodler/MMM-ENV-Provider]</p>
]]></description><link>https://forum.magicmirror.builders/topic/10822/use-enviromental-variables-in-server-only-mode</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 18:44:16 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10822.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jul 2019 13:03:33 GMT</pubDate><ttl>60</ttl></channel></rss>