Set up Atlas Firebase
This commit is contained in:
parent
5beda1ded7
commit
eae5a70d52
35
common/envs/atlas.ts
Normal file
35
common/envs/atlas.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { EnvConfig, PROD_CONFIG } from './prod'
|
||||
|
||||
export const ATLAS_CONFIG: EnvConfig = {
|
||||
domain: 'atlas.manifold.markets',
|
||||
firebaseConfig: {
|
||||
apiKey: 'AIzaSyCQvm7AjL1NjULPaEYjAiUjiVhfXmHGh_w',
|
||||
authDomain: 'atlas-manifold.firebaseapp.com',
|
||||
projectId: 'atlas-manifold',
|
||||
storageBucket: 'atlas-manifold.appspot.com',
|
||||
messagingSenderId: '802386508975',
|
||||
appId: '1:802386508975:web:1b1ff75deec469945ca85a',
|
||||
measurementId: 'G-FR9SJTFF2K',
|
||||
region: 'us-central1',
|
||||
},
|
||||
// TODO: fill in real endpoints for atlas
|
||||
// Where do we get these?
|
||||
functionEndpoints: {
|
||||
placebet: 'https://placebet-nggbo3neva-uc.a.run.app',
|
||||
sellshares: 'https://sellshares-nggbo3neva-uc.a.run.app',
|
||||
sellbet: 'https://sellbet-nggbo3neva-uc.a.run.app',
|
||||
createmarket: 'https://createmarket-nggbo3neva-uc.a.run.app',
|
||||
},
|
||||
adminEmails: [...PROD_CONFIG.adminEmails],
|
||||
whitelistEmail: '',
|
||||
moneyMoniker: 'A$',
|
||||
visibility: 'PRIVATE',
|
||||
faviconPath: '/theoremone/logo.ico',
|
||||
navbarLogoPath: '/theoremone/TheoremOne-Logo.svg',
|
||||
newQuestionPlaceholders: [
|
||||
'Will we have at least 5 new team members by the end of this quarter?',
|
||||
'Will we meet or exceed our goals this sprint?',
|
||||
'Will we sign on 3 or more new clients this month?',
|
||||
'Will Paul shave his beard by the end of the month?',
|
||||
],
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
import { escapeRegExp } from 'lodash'
|
||||
import { ATLAS_CONFIG } from './atlas'
|
||||
import { DEV_CONFIG } from './dev'
|
||||
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,
|
||||
ATLAS: ATLAS_CONFIG,
|
||||
}
|
||||
|
||||
export const ENV_CONFIG = CONFIGS[ENV]
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"devdev": "cross-env NEXT_PUBLIC_FIREBASE_ENV=DEV concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=DEV next dev -p 3000\" \"cross-env FIREBASE_ENV=DEV yarn ts --watch\"",
|
||||
"dev:dev": "yarn devdev",
|
||||
"dev:the": "cross-env NEXT_PUBLIC_FIREBASE_ENV=THEOREMONE concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=THEOREMONE next dev -p 3000\" \"cross-env FIREBASE_ENV=THEOREMONE yarn ts --watch\"",
|
||||
"dev:atlas": "cross-env NEXT_PUBLIC_FIREBASE_ENV=ATLAS concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=ATLAS next dev -p 3000\" \"cross-env FIREBASE_ENV=ATLAS yarn ts --watch\"",
|
||||
"dev:emulate": "cross-env NEXT_PUBLIC_FIREBASE_EMULATE=TRUE yarn devdev",
|
||||
"ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty",
|
||||
"build": "next build",
|
||||
|
|
Loading…
Reference in New Issue
Block a user