diff options
author | 2018-03-02 15:43:02 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:52 +0300 | |
commit | fb44a9cf650889f097701ebf27a8032f3f0fcc20 (patch) | |
tree | 023c17ed83cef36a9711d45381c88ff77cc37845 | |
parent | d74e1a6b254409aa3b5b6d1bd1ed81de9cccf521 (diff) |
listen on internal-ip
-rw-r--r-- | vnext/package.json | 1 | ||||
-rw-r--r-- | vnext/webpack.config.js | 2 | ||||
-rw-r--r-- | vnext/yarn.lock | 34 |
3 files changed, 37 insertions, 0 deletions
diff --git a/vnext/package.json b/vnext/package.json index d7e457ab..35ae0560 100644 --- a/vnext/package.json +++ b/vnext/package.json @@ -19,6 +19,7 @@ "connect-history-api-fallback": "^1.5.0", "css-loader": "^0.28.10", "file-loader": "^1.1.11", + "internal-ip": "^3.0.1", "koa-connect": "^2.0.1", "prop-types": "^15.6.1", "react-hot-loader": "^4.0.0", diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 9eb1d7fa..ce4995eb 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -1,5 +1,6 @@ const history = require('connect-history-api-fallback'); const convert = require('koa-connect'); +const internalIp = require('internal-ip'); module.exports = { entry: { @@ -23,6 +24,7 @@ module.exports = { module.exports.serve = { content: [__dirname], + host: internalIp.v4.sync(), add: (app, middleware, options) => { const historyOptions = { // ... see: https://github.com/bripkens/connect-history-api-fallback#options diff --git a/vnext/yarn.lock b/vnext/yarn.lock index 0883e7ad..917c8c25 100644 --- a/vnext/yarn.lock +++ b/vnext/yarn.lock @@ -1847,6 +1847,13 @@ deep-extend@^0.4.0, deep-extend@~0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" +default-gateway@^2.6.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-2.7.0.tgz#eac4456f4074b57ae2db4275cea881dcb37dd5b8" + dependencies: + execa "^0.9.0" + ip-regex "^2.1.0" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -2118,6 +2125,18 @@ execa@^0.8.0: signal-exit "^3.0.0" strip-eof "^1.0.0" +execa@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01" + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + exit-hook@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" @@ -2928,6 +2947,13 @@ inquirer@^5.1.0: strip-ansi "^4.0.0" through "^2.3.6" +internal-ip@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-3.0.1.tgz#df5c99876e1d2eb2ea2d74f520e3f669a00ece27" + dependencies: + default-gateway "^2.6.0" + ipaddr.js "^1.5.2" + interpret@^1.0.0, interpret@^1.0.4: version "1.1.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" @@ -2949,6 +2975,14 @@ invert-kv@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" +ip-regex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + +ipaddr.js@^1.5.2: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b" + is-absolute-url@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" |