From e82c5ea1292adde04ec6dc352e17e79f7f4609cc Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Sat, 26 May 2018 15:04:16 -0700 Subject: [PATCH] Add hubs.test as valid domain for webpack dev server --- scripts/build_local_reticulum.sh | 2 +- webpack.config.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build_local_reticulum.sh b/scripts/build_local_reticulum.sh index 3f5e3a001..ea4ceea4c 100755 --- a/scripts/build_local_reticulum.sh +++ b/scripts/build_local_reticulum.sh @@ -4,4 +4,4 @@ if [ ! -e ../reticulum ]; then echo "This script assumes reticulum is checked out in a sibling to this folder." fi -rm -rf ../reticulum/priv/static ; GENERATE_SMOKE_TESTS=true BASE_ASSETS_PATH=https://localhost:4000/ yarn build -- --output-path ../reticulum/priv/static +rm -rf ../reticulum/priv/static ; GENERATE_SMOKE_TESTS=true BASE_ASSETS_PATH=https://hubs.test:4000/ yarn build -- --output-path ../reticulum/priv/static diff --git a/webpack.config.js b/webpack.config.js index 17fbb4f8b..5bc3f63e2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -41,6 +41,10 @@ function createHTTPSConfig() { { type: 2, value: "localhost" + }, + { + type: 2, + value: "hubs.test" } ] } @@ -93,6 +97,7 @@ const config = { https: createHTTPSConfig(), host: "0.0.0.0", useLocalIp: true, + public: "hubs.test:8080", port: 8080, before: function(app) { // networked-aframe makes HEAD requests to the server for time syncing. Respond with an empty body. -- GitLab