Skip to content

Commit

Permalink
feat(command-dev): add support for functionsPort flag (#4048)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Holzer <lukas.holzer@netlify.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
3 people authored Jan 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent cd2058f commit b58d689
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/commands/dev.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ netlify dev
- `dir` (*string*) - dir with static files
- `framework` (*string*) - framework to use. Defaults to #auto which automatically detects a framework
- `functions` (*string*) - specify a functions folder to serve
- `functionsPort` (*string*) - port of functions server
- `live` (*boolean*) - start a public live session
- `offline` (*boolean*) - disables any features that require network access
- `port` (*string*) - port of netlify dev
1 change: 1 addition & 0 deletions src/commands/dev/dev.js
Original file line number Diff line number Diff line change
@@ -316,6 +316,7 @@ const createDevCommand = (program) => {
.option('-f ,--functions <folder>', 'specify a functions folder to serve')
.option('-o ,--offline', 'disables any features that require network access')
.option('-l, --live', 'start a public live session', false)
.option('--functionsPort <port>', 'port of functions server', (value) => Number.parseInt(value))
.addOption(
new Option('--staticServerPort <port>', 'port of the static app server used when no framework is detected')
.argParser((value) => Number.parseInt(value))

1 comment on commit b58d689

@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: 355 MB

Please sign in to comment.