Set up an custom instance for Richard Hanania

This commit is contained in:
Austin Chen 2022-06-22 18:14:21 -05:00
parent 16ac25bb77
commit dcb81974e6
3 changed files with 30 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import { escapeRegExp } from 'lodash'
import { DEV_CONFIG } from './dev'
import { HANANIA_CONFIG } from './hanania'
import { EnvConfig, PROD_CONFIG } from './prod'
import { THEOREMONE_CONFIG } from './theoremone'
@ -9,6 +10,7 @@ const CONFIGS: { [env: string]: EnvConfig } = {
PROD: PROD_CONFIG,
DEV: DEV_CONFIG,
THEOREMONE: THEOREMONE_CONFIG,
HANANIA: HANANIA_CONFIG,
}
export const ENV_CONFIG = CONFIGS[ENV]

26
common/envs/hanania.ts Normal file
View File

@ -0,0 +1,26 @@
import { EnvConfig, PROD_CONFIG } from './prod'
export const HANANIA_CONFIG: EnvConfig = {
domain: 'hanania.manifold.markets',
firebaseConfig: {
apiKey: 'AIzaSyC1F3kAXZ0V0RM0Cg-xFwQn8pbOWFFDBYY',
authDomain: 'hanania-manifold.firebaseapp.com',
projectId: 'hanania-manifold',
storageBucket: 'hanania-manifold.appspot.com',
messagingSenderId: '319008991675',
appId: '1:319008991675:web:d2dc5e72b95cdcec96fc9e',
measurementId: 'G-VCXVKYGKTC',
},
// TODO replace
functionEndpoints: {
placebet: 'https://placebet-txwwmth7kq-uc.a.run.app',
sellshares: 'https://sellshares-txwwmth7kq-uc.a.run.app',
sellbet: 'https://sellbet-txwwmth7kq-uc.a.run.app',
createmarket: 'https://createmarket-txwwmth7kq-uc.a.run.app',
creategroup: 'https://creategroup-w3txbmd3ba-uc.a.run.app',
},
adminEmails: [...PROD_CONFIG.adminEmails],
whitelistEmail: '',
moneyMoniker: 'H$',
visibility: 'PRIVATE',
}

View File

@ -20,14 +20,14 @@ export type EnvConfig = {
moneyMoniker: string // e.g. 'M$'
faviconPath?: string // Should be a file in /public
navbarLogoPath?: string
newQuestionPlaceholders: string[]
newQuestionPlaceholders?: string[] // TODO remove
}
type FirebaseConfig = {
apiKey: string
authDomain: string
projectId: string
region: string
region?: string // TODO remove
storageBucket: string
messagingSenderId: string
appId: string