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/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 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