我正在开发一个个人项目,该项目是一个应用程序,用户可以输入他们的地址和信用卡信息,然后单击按钮为我常去的大学之一购买停车许可证。
我想将我的前端托管在Firebase的云存储中,并且我想创建一个云端函数,其中puppeteer代码可以与我保存到Firebase实时数据库的信息一起运行。
firebase云端功能可以运行购买停车许可证的木偶代码吗?
由于puppeteer不支持云端功能,我可以使用heruoku来承载木偶编码吗?
I'm working on a personal project which is an app where an user can input their address & credit card info and click a button to buy a parking permit for one of the university that I visit often.
I want to host my front end in firebase's cloud storage and I want to create a cloud function where puppeteer code can run with the information that I save to the firebase's realtime database.
Is it possible for firebase cloud function to run puppeteer code that buy a parking permit?
Since puppeteer doesn't work with cloud functions, can I use heruoku to host the puppeteer code?
最满意答案
目前无法将Puppeteer与Cloud Functions结合使用,因为运行部署代码的服务器实例缺少Puppeteer所需的共享库。 你可以在这个GitHub问题中阅读 。 也看到这个问题 。
It's currently not possible to use Puppeteer with the Cloud Functions node 6 runtime because the server instances that run deployed code are lacking a shared library that's required by Puppeteer. You can read about that in this GitHub issue. Also see this issue.
As of the node 8 runtime release, the required libraries for puppeteer are available.
更多推荐
发布评论