]> Repos - mime-chat/commitdiff
Added PROD env variable feature prod
authorAndrew Gundersen <gundersena@crimata.com>
Wed, 18 May 2022 15:15:18 +0000 (10:15 -0500)
committerAndrew Gundersen <gundersena@crimata.com>
Wed, 18 May 2022 15:15:18 +0000 (10:15 -0500)
src/config.js

index bc47fb5429781f7025c320923ab33e1b75e6d8c6..35376009ee14697ad95020cb0755730fdb90630c 100644 (file)
@@ -2,8 +2,8 @@ const { app } = require("electron");
 
 const DOMAIN = "crimata.com";
 
-const prod = !process.defaultApp;
-// const prod = true;
+/* If PROD env variable exists */
+const prod = process.env.PROD;
 
 module.exports = {
     PLATFORM: prod ? `https://app.${DOMAIN}` : `http://localhost:8760`,