我按照一些教程一步一步地部署了firebase云函数,我没有找到任何关于付费的教程,甚至没有官方的firebase文档,但是当我运行firebase deploy this命令时,我得到了这个错误
firebase deploy
=== Deploying to 'wissal-4736a'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
> functions@ lint C:\Users\HP\Desktop\aaaa\functions
> eslint .
+ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
! functions: missing required API cloudbuild.googleapis.com. Enabling now...
+ functions: required API cloudfunctions.googleapis.com is enabled
Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
https://console.firebase.google.com/project/wissal-4736a/usage/details
For additional information about this requirement, see Firebase FAQs:
https://firebase.google.com/support/faq#functions-runtime那么我是否应该将我的帐户升级到一个已取消的帐户,或者我犯了一些错误,或者有一个解决方案可以获得一个免费的帐户,因为我是一名学生,我需要一些帮助,谢谢
发布于 2020-08-04 21:45:37
正如错误消息所说,将Cloud Functions部署到Firebase项目需要该项目在即付即用计划中。然而,这并不意味着你必须为此付费,因为该计划提供了一个免费的层级。从Firebase pricing page
在Blaze计划中,云功能提供了一个永久免费的层。每月免费提供前200万次调用、400,000 GB-sec、200,000 CPU-sec和5 GB的Internet出口流量。您只需按超出此免费配额的使用量收费。
另一种选择是切换到使用Node.js 8运行时,这还不需要帐户在计费计划中。
有关这方面的更多信息以及云函数在Firebase中的计费方式,请参阅Cloud Functions runtime support和Cloud Functions pricing上的常见问题解答。
https://stackoverflow.com/questions/63245450
复制相似问题