Add config and scripts for Supersync
This commit is contained in:
parent
245036ea69
commit
581319cc53
|
@ -1,5 +1,6 @@
|
||||||
import { DEV_CONFIG } from './dev'
|
import { DEV_CONFIG } from './dev'
|
||||||
import { EnvConfig, PROD_CONFIG } from './prod'
|
import { EnvConfig, PROD_CONFIG } from './prod'
|
||||||
|
import { SUPERSYNC_CONFIG } from './supersync'
|
||||||
import { THEOREMONE_CONFIG } from './theoremone'
|
import { THEOREMONE_CONFIG } from './theoremone'
|
||||||
|
|
||||||
const ENV = process.env.NEXT_PUBLIC_FIREBASE_ENV ?? 'PROD'
|
const ENV = process.env.NEXT_PUBLIC_FIREBASE_ENV ?? 'PROD'
|
||||||
|
@ -8,6 +9,7 @@ const CONFIGS = {
|
||||||
PROD: PROD_CONFIG,
|
PROD: PROD_CONFIG,
|
||||||
DEV: DEV_CONFIG,
|
DEV: DEV_CONFIG,
|
||||||
THEOREMONE: THEOREMONE_CONFIG,
|
THEOREMONE: THEOREMONE_CONFIG,
|
||||||
|
SUPERSYNC: SUPERSYNC_CONFIG,
|
||||||
}
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export const ENV_CONFIG: EnvConfig = CONFIGS[ENV]
|
export const ENV_CONFIG: EnvConfig = CONFIGS[ENV]
|
||||||
|
|
26
common/envs/supersync.ts
Normal file
26
common/envs/supersync.ts
Normal file
|
@ -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?',
|
||||||
|
],
|
||||||
|
}
|
|
@ -6,13 +6,12 @@ service cloud.firestore {
|
||||||
|
|
||||||
function isAdmin() {
|
function isAdmin() {
|
||||||
return true
|
return true
|
||||||
// return request.auth.uid == 'OTd2JFY7LOdvQg2ZQGYLUqrXAiD2' // Austin
|
return request.auth.uid == 'P0UsBCW7VmSR0co39kFlsjxWgLQ2' // Austin
|
||||||
// || request.auth.uid == 'czxKSN1Z03Mzu7UqIio3ppM0eDt2' // David
|
// || request.auth.uid == 'czxKSN1Z03Mzu7UqIio3ppM0eDt2' // David
|
||||||
}
|
}
|
||||||
|
|
||||||
function isAuthed() {
|
function isAuthed() {
|
||||||
return true
|
return request.auth != null
|
||||||
// return request.auth != null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
match /users/{userId} {
|
match /users/{userId} {
|
||||||
|
|
|
@ -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\"",
|
"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: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: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",
|
"ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user