From e00017b5bfd875a3bcba955ff0394210322db229 Mon Sep 17 00:00:00 2001 From: ttacquet Date: Mon, 6 Jun 2022 15:28:13 +0200 Subject: [PATCH 1/2] update readme for new runtime --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index c3c95165..473d3f28 100644 --- a/docs/README.md +++ b/docs/README.md @@ -181,7 +181,7 @@ It is not necessary if you wish to deploy containers only. ### Runtimes Available runtimes are: -- `node10`, `node14`, `node16`, `node17` for JavaScript +- `node10`, `node14`, `node16`, `node18` for JavaScript - `python37`, `python38`, `python39`, `python310` - `go113`, `go117`, `go118` @@ -200,7 +200,7 @@ Based on the chosen runtime, the `handler` variable on function might vary: ```yml provider: # ... - runtime: node16 # or node10, node16, node17 + runtime: node16 # or node18 functions: first: handler: src/handlers/firstHandler.myFirstHandler From 6492d3d4dbf2c7569581b574fab0219e3b1d5ec2 Mon Sep 17 00:00:00 2001 From: ttacquet Date: Mon, 6 Jun 2022 15:35:53 +0200 Subject: [PATCH 2/2] fix link and missing note --- README.md | 2 +- docs/templates.md | 2 ++ examples/nodejs-es-modules/serverless.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3998b767..8993d794 100644 --- a/README.md +++ b/README.md @@ -262,7 +262,7 @@ custom: ``` You may refer to the follow examples: -- [NodeJS-10 with schedule trigger](./examples/nodejs10-schedule) +- [NodeJS with schedule trigger](./examples/nodejs-schedule) - [Container with Schedule Trigger](./examples/container-schedule) ### Managing containers diff --git a/docs/templates.md b/docs/templates.md index b76663e6..6ac920ba 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -8,6 +8,8 @@ Here is the default template for `Node`, you can customize `runtime` if you don' - [node.js starter kit](../examples/nodejs) +For ES6 node modules please refer to [node modules](../examples/nodejs-es-modules) + ## Go Here is the default template for `Go`, you can customize `runtime` if you don't want default value : diff --git a/examples/nodejs-es-modules/serverless.yml b/examples/nodejs-es-modules/serverless.yml index 8b66e679..1fe4a518 100644 --- a/examples/nodejs-es-modules/serverless.yml +++ b/examples/nodejs-es-modules/serverless.yml @@ -2,7 +2,7 @@ service: scaleway-esmodule-nodeXX configValidationMode: off provider: name: scaleway - runtime: node16 + runtime: node16 # Available node runtimes are listed in documentation # Global Environment variables - used in every functions env: test: test