[x] Create a new Firebase project in the UI, from manticmarkets@gmail.com
[x] Create thereomone git branch
firestore.rules/common/envs/common/envs/constants.tsNEXT_PUBLIC_FIREBASE_ENV=SUPERSYNC in /functions/.envDeploy Firebase config
[x] $ firebase use mantic-markets to select the main project
[x] $ firebase functions:config:get > .runtimeconfig.json to copy secrets (Stripe & Mailgun key) from main project
[x] $ firebase use <PROJECT_ID> to select the new Firebase project
[x] $ firebase functions:config:set mailgun.key="blah" stripe.webhooksecret="blah"... to set secrets
[x] $ firebase deploy to deploy:
(Note: this will take a while)
Get it working locally
package.json$ firebase deploy --only firestore:rules to redeploy security rulesSet up subdomain theoremone.manifold.markets :
manticmarkets@gmail.comtheoremone git branchNEXT_PUBLIC_FIREBASE_ENV; VALUE: THEOREMONE)Estimate: 30 minutes
Reality: 38 minutes
... + 13min to discover that we needed to set .env for cloud functions