Firebase をフロントエンドから適切に隠蔽するための「Hooks Injection パターン」 - JX通信社エンジニアブログ
FIREBASE_CONFIG
の設定
export FIREBASE_CONFIG='{"apiKey":"これ1","projectId":"これ2"}'
これ1、これ2をFirebaseのconsoleからとる。
このエラーもあるので。
FirebaseError: Missing or insufficient permissions.
セキュリティールールが false を返しているときに吐かれる
firestore.rules
にあったりする。
code: 'auth/auth-domain-config-required', message: 'Be sure to include authDomain when calling firebas…llowing the instructions in the Firebase console.
authDomain
も入れないといけない
FIREBASE_CONFIG
に。こんな感じか。
"projectId":"プロジェクトID","authDomain":"プロジェクトID.firebaseapp.com"
Where can I find my Firebase apiKey and authDomain - Stack Overflow