fixed isPackaged issue

This commit is contained in:
Andrew Gundersen 2022-03-08 07:45:14 -06:00
commit daf13eacb1

View file

@ -2,9 +2,11 @@ const { app } = require("electron");
const DOMAIN = "crimata.com";
const prod = !process.defaultApp;
module.exports = {
PLATFORM: app.isPackaged ? `http://app.${DOMAIN}` : `http://localhost:8760`,
API: app.isPackaged ? `https://${DOMAIN}/api` : `http://localhost:8761`
PLATFORM: prod ? `http://app.${DOMAIN}` : `http://localhost:8760`,
API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761`
}