firebase cloud functions 無料プランについて
コーディング
firebaseの無料プランで学習用にcloud functionの設定をしている際、
firebase deploy
すると、
Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
と有料プランにしないと、使えないよと言われます。
対策としては、
functionsフォルダのpackage.jsonの下記部分を
"engines": {
"node": "10"
},
"engines": {
"node": "8"
},
に変更することで、2021-03-15までは使えるようです。