firebase
firebase.google.com curl -sL firebase.tools | bash インストールが完了したらログインする firebase login
以下のコマンドで firestore.indexes.json が作成 or 上書きされる firebase firestore:indexes > firestore.indexes.json
github actions用にプロジェクトのディレクトリ内の .githiub/workflows/nodejs.yml に以下ようなymlファイルを作成する name: Build and Deploy on: push: branches: - master jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Checkout Re…
firebase.google.com 何も指定しないとデフォルトの us-central1 になる 東京リージョンにする場合は exports.myStorageFunction = functions .region('asia-northeast1') .storage .object() .onFinalize((object) => { // ... }); 上記のように region('as…
以下の様なドキュメントでcreatedIdがログインしているuidの場合のもread writeできるようにしたい - entries - entryId - createdId - title - content rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /en…
https.onCallを利用している場合はCROSの設定等をしなくてもよしなにしてくれるはずだが下記のようなエラーが出た Access to fetch at 'https://<another-location>-<your-project>.cloudfunctions.net/<your-function>' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to </your-function></your-project></another-location>…