[英]How to set using node engine version 10 in dialogflow inline fulfilment package.json?
How to set using node engine version 10 in dialogflow inline fulfilment package.json?如何在 dialogflow 内联实现 package.json 中使用节点引擎版本 10 进行设置?
I try to set it in package.json我尝试将其设置为 package.json
"engines": {
"node": "10"
}
But in my Firebase project, deployed fulfilment cloud function remains use 'Node.js 8'.但是在我的 Firebase 项目中,部署的履行云 function 仍然使用“Node.js 8”。
As of a few days ago, the Dialogflow inline fulfillment uses Node 10 (and you cannot switch back to Node 8).截至几天前,Dialogflow 内联实现使用节点 10(您无法切换回节点 8)。 The downside of this is that you must have billing enabled for the GCP project your dialogflow agent is associated with, as under-the-hood the inline fulfillment uses Cloud Build to deploy.这样做的缺点是您必须为您的 dialogflow 代理关联的 GCP 项目启用计费,因为在后台,内联实现使用 Cloud Build 进行部署。
If you want a free way to deploy your functions in Node 10, then I suggest using Firebase Functions , and using the engines: { node: 10; }
如果您想以一种免费的方式在 Node 10 中部署您的函数,那么我建议使用Firebase Functions ,并使用engines: { node: 10; }
engines: { node: 10; }
as you identified in your initial question to request the Node 10 runtime. engines: { node: 10; }
您在请求 Node 10 运行时的初始问题中所确定的那样。
Don't use the Inline editor, it has some bugs as of now.不要使用内联编辑器,它现在有一些错误。 You can use Firebase CLI to host the fulfillment code.您可以使用 Firebase CLI 托管履行代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.