| 23 | }; |
| 24 | |
| 25 | export 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 | |
| 46 | export const getStripePromise = (consoleEnv: string) => { |
| 47 | if (consoleEnv === "production") { |