MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getSegmentApiKey

Function getSegmentApiKey

console/src/config/apiKeys.ts:25–44  ·  view source on GitHub ↗
({
  consoleEnv,
  isImpersonating,
}: {
  consoleEnv: string;
  isImpersonating: boolean;
})

Source from the content-addressed store, hash-verified

23};
24
25export const getSegmentApiKey = ({
26 consoleEnv,
27 isImpersonating,
28}: {
29 consoleEnv: string;
30 isImpersonating: boolean;
31}) => {
32 if (isImpersonating) {
33 return null;
34 }
35
36 if (consoleEnv === "production") {
37 // Production key
38 return "NCe6YQCHM9g04X9yEBUFtoWOuqZU8J1m";
39 }
40
41 // Since segment staging isn't hooked up to anything, use the development key for
42 // everything that's not production
43 return "dGeQYRjmGVsqDI0KIARrAhTvk1BdJJhk";
44};
45
46export const getStripePromise = (consoleEnv: string) => {
47 if (consoleEnv === "production") {

Callers 1

CloudAppConfigClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected