fixed isPackaged issue
This commit is contained in:
parent
6b5aadc492
commit
daf13eacb1
1 changed files with 4 additions and 2 deletions
|
|
@ -2,9 +2,11 @@ const { app } = require("electron");
|
||||||
|
|
||||||
const DOMAIN = "crimata.com";
|
const DOMAIN = "crimata.com";
|
||||||
|
|
||||||
|
const prod = !process.defaultApp;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
PLATFORM: app.isPackaged ? `http://app.${DOMAIN}` : `http://localhost:8760`,
|
PLATFORM: prod ? `http://app.${DOMAIN}` : `http://localhost:8760`,
|
||||||
API: app.isPackaged ? `https://${DOMAIN}/api` : `http://localhost:8761`
|
API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue