Skip to content

Commit

Permalink
fix: functions:build example (#5618)
Browse files Browse the repository at this point in the history
* Fix for functions:build example

I was creating a plugin and running the example command is not working as `timeout` and `name` does not exist for the functions:build command

* chore: update docs

---------

Co-authored-by: Karin Hendrikse <30577427+khendrikse@users.noreply.github.com>
  • Loading branch information
biruwon and khendrikse authored Apr 13, 2023
1 parent 8ae1456 commit e91051e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/commands/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ netlify functions

```bash
netlify functions:create --name function-xyz
netlify functions:build --name function-abc --timeout 30s
netlify functions:build --functions build/to/directory --src source/directory
```

---
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/functions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The ${name} command will help you manage the functions in this site`,
)
.addExamples([
'netlify functions:create --name function-xyz',
'netlify functions:build --name function-abc --timeout 30s',
'netlify functions:build --functions build/to/directory --src source/directory',
])
.action(functions)
}

1 comment on commit e91051e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 313 MB

Please sign in to comment.