-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Looks good on `dev2`
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
export const env = process.env.ENVIRONMENT ?? "local"; | ||
export const isDevelopment = env.startsWith("development") || env === "local"; | ||
const useJaasPilot = isDevelopment && env !== "development2"; | ||
|
||
let vpaas = ""; | ||
if (isDevelopment) { | ||
if (useJaasPilot) { | ||
vpaas = "vpaas-magic-cookie-41b5e4eb989e414cac4fe7f51400a1d7"; | ||
} else { | ||
vpaas = "vpaas-magic-cookie-cd4131ef77674a71b73411408226e232"; | ||
} | ||
} else if (env === "staging") { | ||
vpaas = "vpaas-magic-cookie-520aa9362071418c8a8661950bc0a470"; | ||
} else { | ||
vpaas = "vpaas-magic-cookie-a4818bd762a044998d717b70ac734cfe"; | ||
} | ||
|
||
export const config = { | ||
vpaas: isDevelopment | ||
? "vpaas-magic-cookie-41b5e4eb989e414cac4fe7f51400a1d7" | ||
: env === "staging" | ||
? "vpaas-magic-cookie-520aa9362071418c8a8661950bc0a470" | ||
: env === "local" | ||
? "vpaas-magic-cookie-cd4131ef77674a71b73411408226e232" | ||
: "vpaas-magic-cookie-a4818bd762a044998d717b70ac734cfe", | ||
webrtc_domain: isDevelopment ? "stage.8x8.vc" : "8x8.vc", | ||
vpaas, | ||
webrtc_domain: useJaasPilot ? "stage.8x8.vc" : "8x8.vc", | ||
}; | ||
|
||
export const isProduction = env === "production"; |