From e14fde3d3ef7e3d2c0d761ecddd2b39c65dd8040 Mon Sep 17 00:00:00 2001 From: Roman O Date: Tue, 22 Feb 2022 16:35:22 +0300 Subject: [PATCH] Update env.js Default host is 0.0.0.0 by doc --- packages/razzle/config/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/razzle/config/env.js b/packages/razzle/config/env.js index 4dc3b682e..372b761be 100644 --- a/packages/razzle/config/env.js +++ b/packages/razzle/config/env.js @@ -51,7 +51,7 @@ function getClientEnvironment(target, is_dev, options, paths) { NODE_ENV: process.env.NODE_ENV || 'development', PORT: process.env.PORT || options.port || 3000, VERBOSE: !!process.env.VERBOSE, - HOST: process.env.HOST || options.host || 'localhost', + HOST: process.env.HOST || options.host || '0.0.0.0', RAZZLE_ASSETS_MANIFEST: paths.appAssetsManifest, BUILD_TARGET: target === 'web' ? 'client' : 'server', // only for production builds. Useful if you need to serve from a CDN