From 35b5183787b9f1b9726ddb028d51edbad517acf5 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 1 Jul 2022 11:01:53 -0700 Subject: [PATCH] Scaffold Atlas2 instance --- common/envs/atlas2.ts | 30 ++++++++++++++++++++++++++++++ common/envs/constants.ts | 2 ++ web/package.json | 1 + 3 files changed, 33 insertions(+) create mode 100644 common/envs/atlas2.ts diff --git a/common/envs/atlas2.ts b/common/envs/atlas2.ts new file mode 100644 index 00000000..7e28b576 --- /dev/null +++ b/common/envs/atlas2.ts @@ -0,0 +1,30 @@ +import { EnvConfig, PROD_CONFIG } from './prod' + +export const ATLAS2_CONFIG: EnvConfig = { + domain: 'atlas2.manifold.markets', + firebaseConfig: { + apiKey: 'AIzaSyApmYeDGc4wGAAXKsdsx1h1WQBWqj5U2lA', + authDomain: 'atlas2-manifold.firebaseapp.com', + projectId: 'atlas2-manifold', + storageBucket: 'atlas2-manifold.appspot.com', + messagingSenderId: '466243568587', + appId: '1:466243568587:web:c725617dd393bca76fec4e', + measurementId: 'G-YL3CW8Y62X', + }, + cloudRunId: 'TODO', + cloudRunRegion: 'TODO', + + adminEmails: [...PROD_CONFIG.adminEmails], + whitelistEmail: '', + moneyMoniker: '📎', + fixedAnte: 25, + startingBalance: 500, + visibility: 'PRIVATE', + // navbarLogoPath: '/atlas/atlas-logo-white.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?', + ], +} diff --git a/common/envs/constants.ts b/common/envs/constants.ts index c03c44bc..b6d6ab62 100644 --- a/common/envs/constants.ts +++ b/common/envs/constants.ts @@ -1,4 +1,5 @@ import { escapeRegExp } from 'lodash' +import { ATLAS2_CONFIG } from './atlas2' 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, + ATLAS2: ATLAS2_CONFIG, } export const ENV_CONFIG = CONFIGS[ENV] diff --git a/web/package.json b/web/package.json index 454db57c..c19d1ebc 100644 --- a/web/package.json +++ b/web/package.json @@ -6,6 +6,7 @@ "dev": "concurrently -n NEXT,TS -c magenta,cyan \"next dev -p 3000\" \"yarn ts --watch\"", "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:atlas2": "cross-env NEXT_PUBLIC_FIREBASE_ENV=ATLAS2 concurrently -n NEXT,TS -c magenta,cyan \"cross-env FIREBASE_ENV=ATLAS2 next dev -p 3000\" \"cross-env FIREBASE_ENV=ATLAS2 yarn ts --watch\"", "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:emulate": "cross-env NEXT_PUBLIC_FIREBASE_EMULATE=TRUE yarn devdev", "ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty",