如何从自定义域提供 firebase 功能?

问题描述我有一个网站,我已经在使用google域的firebase主机上运行.我现在想显示通过api.mydomain.com之类的url而不是默认的firebase域对我的firebase函数进行的所有调用.我怎么可能做到这一点?IhaveawebsitethatI'malre

发布:2022-10-16 标签:firebasegoogle-cloud-functionsfirebase-hosting


如何将对象存储在 Firebase 云功能 RAM 中?

问题描述在处理用户请求之前,我的应用程序需要构建几个大型哈希图.理想情况下,我想将这些哈希图存储在机器上的内存中,这意味着它永远不必进行任何昂贵的处理,并且可以快速处理任何传入的请求.Myapplicationneedstobuildacoupleoflargehashmapsb

发布:2022-10-16 标签:firebasegoogle-cloud-platformfirebase-realtime-databasegoogle-cloud-functions


将 Firebase 云功能限制为 IP 地址

问题描述我有几个CloudFunctions都设置好并且运行良好,每个类型都是https.onRequest(....IhaveseveralCloudFunctionsthatareallsetupandworkingwell,eachoftypehttps.onRequest

发布:2022-10-16 标签:firebasegoogle-cloud-functionsservice-accounts


如何在 Firebase 函数中获取提供者访问令牌?

问题描述我打算在创建身份验证用户时编写Firebase函数.我的目标是获取Facebook用户页面的长期访问令牌.I'mplanningtowriteFirebasefunctiononAuthenticationusercreation.Mygoalistogetthelong

发布:2022-10-16 标签:javascriptfirebasefirebase-authenticationgoogle-cloud-functions


在云功能中,我如何从另一个集合中加入以获取数据?

问题描述我正在使用云功能向移动设备发送通知.我在FirestoreclientDetail和clientPersonalDetail中有两个集合.我的两个集合中的clientID相同,但日期存储在clientDetail中,名称存储在clientPersonal中.Iamusin

发布:2022-10-16 标签:node.jsfirebasegoogle-cloud-firestoregoogle-cloud-functionspush-notification


无法更改 firebase pubsub 触发器的位置

问题描述我在asia-northeast1中有一个AppEngine应用,但我无法为pubsub触发器指定区域.IhaveanAppEngineappinasia-northeast1,buticouldnotspecifytheregionforpubsubtrigger.这行

发布:2022-10-16 标签:firebasegoogle-cloud-functionsgoogle-cloud-pubsubfirebase-cli


如何从 Firebase 托管的应用程序中引用 Firebase 函数配置变量?

问题描述我正在将Heroku托管的ReactJS/NodeJS应用程序转换为托管在Firebase上.因为Firebase只处理静态页面,所以我需要重新配置用于开发、暂存、生产环境的私有环境特定变量的配置方式.例如在我定义这些类型的变量之前:IamtransitioningaHe

发布:2022-10-16 标签:firebasegoogle-cloud-functionsfirebase-hosting


从 Cloud Function 触发 Cloud Dataflow 管道 - 函数超时

问题描述我正在尝试从CloudFunction触发Dataflow管道,该管道本身是在GCS存储桶中上传新文件时触发的.当我上传文件时,云功能被正确触发,但几秒钟后超时,没有触发任何数据流.下面是我的功能代码:IamtryingtotriggeraDataflowpipeline

发布:2022-10-16 标签:javascriptnode.jstimeoutgoogle-cloud-functionsgoogle-cloud-dataflow


如何通过身份验证从 Google Apps 脚本调用云函数?

问题描述我正在尝试使用HelloWorld"云函数代码示例进行测试,但是当我调用它时,即使我已经将Invoker角色添加到请求者用户电子邮件中,我也会收到401HTTP错误.对于运行此功能的请求,我还需要做些什么吗?I'mtryingtodoatestwiththe"HelloW

发布:2022-10-16 标签:python-3.xgoogle-apps-scriptgoogle-cloud-functions


Firebase snapshot.val() 不是函数

问题描述我写了这个方法,它应该控制台记录触发的节点数据,但我得到了错误.Iwritedthismethodwhichshouldconsole.logthetrigerednodedata,butigeterror.这是我试过的"exports.makeUppercase=fun

发布:2022-10-16 标签:javascriptfirebasefirebase-realtime-databasegoogle-cloud-functions