From 17863c50fc871ea03655dc72c2691cb17604766f Mon Sep 17 00:00:00 2001 From: ejuo Date: Sat, 9 Nov 2019 03:55:49 +0500 Subject: [PATCH] fix(docz-core): add gatsby dev host arg (#1241) --- core/docz-core/src/bundler/machine/services/exec-dev-command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/docz-core/src/bundler/machine/services/exec-dev-command.ts b/core/docz-core/src/bundler/machine/services/exec-dev-command.ts index 1c2f27987..2409c5989 100644 --- a/core/docz-core/src/bundler/machine/services/exec-dev-command.ts +++ b/core/docz-core/src/bundler/machine/services/exec-dev-command.ts @@ -35,7 +35,7 @@ export const execDevCommand = async ({ args }: ServerMachineCtx) => { // For monorepos that install dependencies higher in the fs tree const repoRootPath = get(args, 'repoRootPath', await findRootPath()) const gatsbyPath = path.join(repoRootPath, 'node_modules/.bin/gatsby') - spawn(gatsbyPath, ['develop', '--port', `${args.port}`], { + spawn(gatsbyPath, ['develop', '--host', `${args.host}`, '--port', `${args.port}`], { stdio: 'inherit', cwd: paths.docz, })