【发布时间】:2022-01-05 03:17:48
【问题描述】:
我成功地将我的https.onCall() 云功能部署在特定的服务器位置
functions.region("europe-west6")
.https.onCall((data, context) => ...
但是当我尝试为预定功能指定位置时:
exports.getItems = functions.pubsub.schedule('0 6 * * *')
.region("europe-west6")
.timeZone('Europe/Zurich')
.onRun(async (context) => {
我收到:
TypeError: functions.pubsub.schedule(...).region 不是函数
我想知道这个功能(定义自定义部署区域)是否不适用于预定功能...
(顺便说一句,在没有 .region() 参数的情况下部署计划函数)
【问题讨论】:
标签: javascript node.js firebase google-cloud-functions