Skip to content

Commit fb24342

Browse files
committed
better defaults for mobile dev properties so that frontend can automatically connect to firebase emulator
1 parent 6e7c8e3 commit fb24342

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

cloud/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lint": "eslint --ext .js,.ts .",
55
"build": "tsc",
66
"build:watch": "tsc --watch",
7-
"serve": "npm run build && env-cmd -f ./.env.local firebase emulators:start --import data --export-on-exit --inspect-functions",
7+
"serve": "npm run build && env-cmd -f ./.env.local firebase emulators:start --import data --export-on-exit --inspect-functions --project ${FIREBASE_PROJECT_NAME:-voxxrin-v3}",
88
"shell": "npm run build && firebase functions:shell",
99
"start": "npm run shell",
1010
"deploy": "firebase deploy --only functions --project ${FIREBASE_PROJECT_NAME:-voxxrin-v3}",

mobile/.env.dev

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
# Will use local firebase instances (run `npm run serve` from cloud/ directory) on local DEV env only
2+
VITE_USE_LOCAL_FIREBASE_INSTANCE=true
3+
# Same, but for auth
4+
VITE_USE_LOCAL_FIREBASE_INSTANCE_FOR_AUTH=true
5+
16

27
# If you want, you can override this property in the git-ignored .env.dev.local file
38
# see https://vitejs.dev/guide/env-and-mode.html
4-
VITE_FIREBASE_API_KEY=<Please put your Public API Key here>
5-
VITE_FIREBASE_AUTH_DOMAIN=<Firebase Project>.firebaseapp.com
6-
VITE_FIREBASE_PROJECT_ID=<Firebase Project>
9+
VITE_FIREBASE_API_KEY=fake-voxxrin-v3-key
10+
#VITE_FIREBASE_API_KEY=<Please put your Public API Key here>
11+
VITE_FIREBASE_AUTH_DOMAIN=localhost
12+
#VITE_FIREBASE_AUTH_DOMAIN=<Firebase Project>.firebaseapp.com
13+
VITE_FIREBASE_PROJECT_ID=voxxrin-v3
14+
#VITE_FIREBASE_PROJECT_ID=<Firebase Project>
715
VITE_FIREBASE_STORAGE_BUCKET=<Firebase Project>.appspot.com
816
VITE_FIREBASE_MESSAGING_SENDER_ID=<Firebase Messaging ID>
917
VITE_FIREBASE_APP_ID=<Firebase App ID>
10-
# Will use local firebase instances (run `npm run serve` from cloud/ directory) on local DEV env only
11-
VITE_USE_LOCAL_FIREBASE_INSTANCE=false
12-
# Same, but for auth
13-
VITE_USE_LOCAL_FIREBASE_INSTANCE_FOR_AUTH=false
1418

1519
# Feature flags
1620
VITE_VIEWABLE_USER_DASHBOARD=true

0 commit comments

Comments
 (0)