リモートで働くプログラマーの検索結果

リモ太がググったことの覚書

firebase

Firebase CLIをインストールする

firebase.google.com curl -sL firebase.tools | bash インストールが完了したらログインする firebase login

firestoreのindexのjsonファイルをローカルにエクスポートする

以下のコマンドで firestore.indexes.json が作成 or 上書きされる firebase firestore:indexes > firestore.indexes.json

githubにpushしたらfirebaseのhostingにnuxtプロジェクトをdeployした

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のcloud functionsのregionを指定する

firebase.google.com 何も指定しないとデフォルトの us-central1 になる 東京リージョンにする場合は exports.myStorageFunction = functions .region('asia-northeast1') .storage .object() .onFinalize((object) => { // ... }); 上記のように region('as…

firestoreのセキュリティルールでフィールドの値で検証する

以下の様なドキュメントでcreatedIdがログインしているuidの場合のもread writeできるようにしたい - entries - entryId - createdId - title - content rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /en…

Cloud Functionsでhttps.onCallを利用しているのにCROSのエラーが出る

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>…