Feature Request: Firebase SDK Auto Config
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 22時間 28分
- マージ済み PR(30日)
- 6
説明
I would like to propose Firebase SDK AutoConfig as an option when initializing the app:
`AngularFireModule.initializeAppWithAutoConfig(),`
Right now, I have a workaround by adding this 2 lines in `package.json` so that the build process will pull the config from my Firebase project:
```
"build": "npm run getFirebaseConfig && ng build",
"getFirebaseConfig": "firebase apps:sdkconfig web --json > ./firebaseConfig.json",
```
Then in my `app.module.ts`:
```
import * as firebaseConfig from '../../firebaseConfig.json';
AngularFireModule.initializeApp(firebaseConfig.result.sdkConfig),
```
It works but it has an extra immediate step to generate the `firebaseConfig.json`. So, it will be great if AngularFireModule takes care of it.
Reference:
https://firebase.google.com/docs/hosting/reserved-urls#sdk_auto-configuration
コントリビューションガイド
調査の方向性
Firebase の reserved-URLs SDK 自動構成リファレンスと、app.module.ts に示されている AngularFireModule.initializeApp の呼び出しから始めます。これを package.json の build/getFirebaseConfig workaround および firebaseConfig.json のフローと比較します。完了の条件は、生成されたファイルや追加の build step なしで、初期化に Firebase SDK の自動構成を使用できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, firebase, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100