File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,10 @@ import * as app from 'firebase/app'
2
2
import 'firebase/firestore'
3
3
import 'firebase/storage'
4
4
5
- const config = JSON . parse ( process . env . VUE_APP_FIREBASE_CONFIG ) || {
6
- apiKey : 'AIzaSyCVy3Oc1jgvacBZe5hKBA8mV9EOqmqUG0U' ,
7
- authDomain : 'sandbox-public.firebaseapp.com' ,
8
- databaseURL : 'https://sandbox-public.firebaseio.com' ,
9
- projectId : 'sandbox-public' ,
10
- storageBucket : 'sandbox-public.appspot.com' ,
11
- messagingSenderId : '694742394920' ,
12
- appId : '1:694742394920:web:af0d589c7618f85ccc2d1d'
13
- }
5
+ const config =
6
+ process . env . NODE_ENV === 'development'
7
+ ? JSON . parse ( process . env . VUE_APP_FIREBASE_CONFIG )
8
+ : JSON . parse ( process . env . VUE_APP_FIREBASE_CONFIG_PUBLIC )
14
9
15
10
app . initializeApp ( config )
16
11
You can’t perform that action at this time.
0 commit comments