From df191b657b7fb97c082f38820fda22e62bb33257 Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Wed, 18 May 2022 10:15:18 -0500 Subject: [PATCH] Added PROD env variable --- src/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.js b/src/config.js index bc47fb5..3537600 100644 --- a/src/config.js +++ b/src/config.js @@ -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`, -- 2.43.0