From 2254bdb0e175afc626dc05e0f656651e7dab5e9f Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 2 Jan 2019 00:31:10 -0500 Subject: [PATCH] make default dev server target overridable with env vars --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 82754cfd38..b8f754d81b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,8 +1,9 @@ const path = require('path'); const webpack = require('webpack'); -const TARGET_PORT = 8043; -const TARGET = `https://localhost:${TARGET_PORT}`; +const TARGET_PORT = process.env.TARGET_PORT || 8043; +const TARGET_HOST = process.env.TARGET_HOST || 'localhost'; +const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`; module.exports = { entry: './src/index.jsx',