官方文档
https://firebase.google.com/docs/functions/get-started
常见问题
1、国内使用 firebase login 代理问题
出现问题:Authentication Error: Your credentials are no longer valid. Please run firebase login —reauth
https://tourcoder.com/fix-authentication-error-on-running-firebase-login/
export NODE_TLS_REJECT_UNAUTHORIZED=0
export http_proxy=http://127.0.0.1:7890
2、各类权限问题
调用云函数设置了 admin 还不够…
Cloud Functions Admin
Cloud Functions Invoker
Service Account Token Creator
Service Account User
Service Usage Consumer