diff --git a/common/envs/constants.ts b/common/envs/constants.ts index b87948a7..08eb9667 100644 --- a/common/envs/constants.ts +++ b/common/envs/constants.ts @@ -1,5 +1,6 @@ import { DEV_CONFIG } from './dev' import { EnvConfig, PROD_CONFIG } from './prod' +import { SUPERSYNC_CONFIG } from './supersync' import { THEOREMONE_CONFIG } from './theoremone' const ENV = process.env.NEXT_PUBLIC_FIREBASE_ENV ?? 'PROD' @@ -8,6 +9,7 @@ const CONFIGS = { PROD: PROD_CONFIG, DEV: DEV_CONFIG, THEOREMONE: THEOREMONE_CONFIG, + SUPERSYNC: SUPERSYNC_CONFIG, } // @ts-ignore export const ENV_CONFIG: EnvConfig = CONFIGS[ENV] diff --git a/common/envs/supersync.ts b/common/envs/supersync.ts new file mode 100644 index 00000000..a3b7b587 --- /dev/null +++ b/common/envs/supersync.ts @@ -0,0 +1,26 @@ +import { EnvConfig, PROD_CONFIG } from './prod' + +export const SUPERSYNC_CONFIG: EnvConfig = { + domain: 'supersync.manifold.markets', + firebaseConfig: { + apiKey: 'AIzaSyCV2THIZ_DPuFe4SI033uE13XNjzBLHPGM', + authDomain: 'supersync-manifold.firebaseapp.com', + projectId: 'supersync-manifold', + storageBucket: 'supersync-manifold.appspot.com', + messagingSenderId: '385180520313', + appId: '1:385180520313:web:e4d99bf5b888d76b43a9a8', + measurementId: 'G-C28MP0GSDJ', + }, + adminEmails: [...PROD_CONFIG.adminEmails], + whitelistEmail: '@supsync.com', + moneyMoniker: 'S$', + visibility: 'PRIVATE', + faviconPath: '/favicon.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?', + ], +} diff --git a/firestore.rules b/firestore.rules index e694fa1a..9e3c4b61 100644 --- a/firestore.rules +++ b/firestore.rules @@ -6,13 +6,12 @@ service cloud.firestore { function isAdmin() { return true - // return request.auth.uid == 'OTd2JFY7LOdvQg2ZQGYLUqrXAiD2' // Austin + return request.auth.uid == 'P0UsBCW7VmSR0co39kFlsjxWgLQ2' // Austin // || request.auth.uid == 'czxKSN1Z03Mzu7UqIio3ppM0eDt2' // David } function isAuthed() { - return true - // return request.auth != null + return request.auth != null } match /users/{userId} { diff --git a/web/package.json b/web/package.json index 61342e4d..52da924c 100644 --- a/web/package.json +++ b/web/package.json @@ -7,6 +7,7 @@ "devdev": "NEXT_PUBLIC_FIREBASE_ENV=DEV concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=DEV next dev -p 3000\" \"FIREBASE_ENV=DEV yarn ts --watch\"", "dev:dev": "yarn devdev", "dev:the": "NEXT_PUBLIC_FIREBASE_ENV=THEOREMONE concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=THEOREMONE next dev -p 3000\" \"FIREBASE_ENV=THEOREMONE yarn ts --watch\"", + "dev:ss": "NEXT_PUBLIC_FIREBASE_ENV=SUPERSYNC concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=SUPERSYNC next dev -p 3000\" \"FIREBASE_ENV=SUPERSYNC yarn ts --watch\"", "ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty", "build": "next build", "start": "next start",