简体   繁体   中英

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?

I try to set it in package.json

"engines": {
    "node": "10"
}

But in my Firebase project, deployed fulfilment cloud function remains use 'Node.js 8'.

As of a few days ago, the Dialogflow inline fulfillment uses Node 10 (and you cannot switch back to Node 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.

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; } engines: { node: 10; } as you identified in your initial question to request the Node 10 runtime.

Don't use the Inline editor, it has some bugs as of now. You can use Firebase CLI to host the fulfillment code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM