created: 2021-06-08T13:37:21.000Z

Firebase Hosting の一部のエンドポイントを CloudRun で受ける

こんな設定でできる。CloudFunctionで受けるのとほとんど一緒。

{
  "hosting": {
    "public": "public",
    "rewrites": [
      {
        "source": "/**",
        "run": {
          "serviceId": "myappcloudrun-servicename",
          "region": "asia-northeast1"
        }
      }
    ]
  }
}

参考

単体テストの考え方/使い方
[ad] 単体テストの考え方/使い方
Vladimir Khorikov, 須田智之 (単行本(ソフトカバー))