質問編集履歴

1

文章追加

2022/03/12 03:01

投稿

edu
edu

スコア35

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,26 @@
9
9
  下記のコードを何を書き換えたら、firesotreが正しくインスタンスされるのかがわかりません。
10
10
 
11
11
  何方かアドバイスをお願いします。
12
+
13
+ ```firebase.js
14
+ import { initializeApp } from "firebase/app";
15
+ import { getAuth } from "firebase/auth";
16
+ import { getFirestore } from "firebase/firestore";
17
+
18
+ const firebaseConfig = {
19
+ apiKey: "",
20
+ authDomain: "",
21
+ projectId: "",
22
+ storageBucket: "",
23
+ messagingSenderId: "",
24
+ appId: "",
25
+ measurementId: "",
26
+ };
27
+
28
+ export const firebaseApp = initializeApp(firebaseConfig);
29
+ export const auth = getAuth(firebaseApp);
30
+ export const firestore = getFirestore(firebaseApp);
31
+ ```
12
32
 
13
33
 
14
34
  ```