@@ -2,28 +2,17 @@ import * as app from 'firebase/app'
2
2
import 'firebase/firestore'
3
3
import 'firebase/storage'
4
4
5
- // const 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
- // }
14
-
15
- const config = {
16
- apiKey : 'AIzaSyAp_VqNngNGQMRMDSag10xqGTap-G6FM9E' ,
17
- authDomain : 'sandbox-226704.firebaseapp.com' ,
18
- databaseURL : 'https://sandbox-226704.firebaseio.com' ,
19
- projectId : 'sandbox-226704' ,
20
- storageBucket : 'sandbox-226704.appspot.com' ,
21
- messagingSenderId : '1015649565816' ,
22
- appId : '1:1015649565816:web:1a79587b436517599cc18d'
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'
23
13
}
24
14
25
15
app . initializeApp ( config )
26
- // app.initializeApp(JSON.parse(process.env.VUE_APP_FIREBASE_CONFIG_PUBLIC))
27
16
28
17
export const firebase = app
29
18
export const db = app . firestore ( )
0 commit comments