[x] Create a new Firebase project in the UI, from [email protected]
[x] Create thereomone
git branch
firestore.rules
/common/envs
/common/envs/constants.ts
NEXT_PUBLIC_FIREBASE_ENV=SUPERSYNC
in /functions/.env
Deploy 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
:
[email protected]
theoremone
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