Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 80a0e1e

Browse files
authored
fix(docz-core): pass down host when running serve (#1384)
1 parent e81286a commit 80a0e1e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

core/docz-core/src/commands/serve.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ export const serve = async (args: Arguments<any>) => {
1111

1212
if (config.port) {
1313
cliArgs.push('--')
14-
// Append gatsby option `port`to CLI args
14+
// Append gatsby option `port` to CLI args
1515
// https://www.gatsbyjs.org/docs/cheat-sheet/#cheat_sheet-text
1616
cliArgs.push('--port')
1717
cliArgs.push(String(config.port))
1818
}
1919

20+
if (config.host) {
21+
// Append gatsby option `host` to CLI args
22+
// https://www.gatsbyjs.org/docs/cheat-sheet/#cheat_sheet-text
23+
cliArgs.push('--host')
24+
cliArgs.push(String(config.host))
25+
}
26+
2027
sh.cd(paths.docz)
2128
spawnSync('npm', cliArgs)
2229
}

0 commit comments

Comments
 (0)