mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #3015 from serverless/fix-typos-in-variables-guide
Fix typos in variables guide
This commit is contained in:
commit
93a0fa2985
@ -109,8 +109,8 @@ In the above example, you're referencing the entire `myCustomFile.yml` file in t
|
||||
To add dynamic data into your variables, reference javascript files by putting `${file(./myFile.js):someModule}` syntax in your `serverless.yml`. Here's an example:
|
||||
|
||||
```js
|
||||
# myCustomFile.js
|
||||
module.exports.hello = function() {
|
||||
// myCustomFile.js
|
||||
module.exports.hello = () => {
|
||||
// Code that generates dynamic data
|
||||
return 'rate (10 minutes)';
|
||||
}
|
||||
@ -141,8 +141,8 @@ functions:
|
||||
```
|
||||
|
||||
```js
|
||||
# myCustomFile.js
|
||||
module.exports.schedule = function() {
|
||||
// myCustomFile.js
|
||||
module.exports.schedule = () => {
|
||||
// Code that generates dynamic data
|
||||
return {
|
||||
ten: 'rate(10 minutes)',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user