Set up an custom instance for Richard Hanania
This commit is contained in:
parent
16ac25bb77
commit
dcb81974e6
|
@ -1,5 +1,6 @@
|
||||||
import { escapeRegExp } from 'lodash'
|
import { escapeRegExp } from 'lodash'
|
||||||
import { DEV_CONFIG } from './dev'
|
import { DEV_CONFIG } from './dev'
|
||||||
|
import { HANANIA_CONFIG } from './hanania'
|
||||||
import { EnvConfig, PROD_CONFIG } from './prod'
|
import { EnvConfig, PROD_CONFIG } from './prod'
|
||||||
import { THEOREMONE_CONFIG } from './theoremone'
|
import { THEOREMONE_CONFIG } from './theoremone'
|
||||||
|
|
||||||
|
@ -9,6 +10,7 @@ const CONFIGS: { [env: string]: EnvConfig } = {
|
||||||
PROD: PROD_CONFIG,
|
PROD: PROD_CONFIG,
|
||||||
DEV: DEV_CONFIG,
|
DEV: DEV_CONFIG,
|
||||||
THEOREMONE: THEOREMONE_CONFIG,
|
THEOREMONE: THEOREMONE_CONFIG,
|
||||||
|
HANANIA: HANANIA_CONFIG,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ENV_CONFIG = CONFIGS[ENV]
|
export const ENV_CONFIG = CONFIGS[ENV]
|
||||||
|
|
26
common/envs/hanania.ts
Normal file
26
common/envs/hanania.ts
Normal 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',
|
||||||
|
}
|
|
@ -20,14 +20,14 @@ export type EnvConfig = {
|
||||||
moneyMoniker: string // e.g. 'M$'
|
moneyMoniker: string // e.g. 'M$'
|
||||||
faviconPath?: string // Should be a file in /public
|
faviconPath?: string // Should be a file in /public
|
||||||
navbarLogoPath?: string
|
navbarLogoPath?: string
|
||||||
newQuestionPlaceholders: string[]
|
newQuestionPlaceholders?: string[] // TODO remove
|
||||||
}
|
}
|
||||||
|
|
||||||
type FirebaseConfig = {
|
type FirebaseConfig = {
|
||||||
apiKey: string
|
apiKey: string
|
||||||
authDomain: string
|
authDomain: string
|
||||||
projectId: string
|
projectId: string
|
||||||
region: string
|
region?: string // TODO remove
|
||||||
storageBucket: string
|
storageBucket: string
|
||||||
messagingSenderId: string
|
messagingSenderId: string
|
||||||
appId: string
|
appId: string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user