Skip to content

Commit

Permalink
Test #1421 on dev3
Browse files Browse the repository at this point in the history
Looks good on `dev2`
  • Loading branch information
mrose17 committed Apr 26, 2024
1 parent be70e43 commit 3d850d5
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/environment.ts
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";

0 comments on commit 3d850d5

Please sign in to comment.