serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
271 stars 126 forks source link

Missing Runtimes #310

Open 9001-Sols opened 10 months ago

9001-Sols commented 10 months ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch serverless-google-cloudfunctions@4.6.0 for the project I'm working on.

There are missing provider runtimes.

Here is the diff that solved my problem:

diff --git a/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js b/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js
index 00bbd85..ae684d2 100644
--- a/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js
+++ b/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js
@@ -62,6 +62,8 @@ class GoogleProvider {
             'nodejs12',
             'nodejs14',
             'nodejs16', // recommended
+            'nodejs18',
+            'nodejs20',
             'python37',
             'python38',
             'python39',

This issue body was partially generated by patch-package.