From 3afb6bf45a9dc451bb71a56f342a19c33ef38aa6 Mon Sep 17 00:00:00 2001 From: richardwong Date: Fri, 26 Aug 2022 22:17:18 +0800 Subject: [PATCH] fix(next): add default hostname value to @nrwl/next:server (#11701) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 文虎 --- packages/next/src/executors/server/server.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/executors/server/server.impl.ts b/packages/next/src/executors/server/server.impl.ts index 20b8cd1720..53a50d1eec 100644 --- a/packages/next/src/executors/server/server.impl.ts +++ b/packages/next/src/executors/server/server.impl.ts @@ -97,7 +97,7 @@ async function* runNextDevServer( conf: config, port: options.port, customServer: !!options.customServerTarget, - hostname: options.hostname, + hostname: options.hostname || 'localhost', // TOOD(jack): Remove in Nx 15 path: options.customServerPath,