From 660dda2268742df7fb8cf3eb9c9c81cfc1d203c3 Mon Sep 17 00:00:00 2001
From: Marshall Quander <marshall@quander.me>
Date: Wed, 1 Aug 2018 17:03:32 -0700
Subject: [PATCH] Make default WDS config nicer for newbies

---
 webpack.config.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/webpack.config.js b/webpack.config.js
index ddbec2c9b..dcc83a52e 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -70,13 +70,11 @@ module.exports = (env, argv) => ({
   },
   devtool: argv.mode === "production" ? "source-map" : "inline-source-map",
   devServer: {
-    open: false,
     https: createHTTPSConfig(),
     host: "0.0.0.0",
     useLocalIp: true,
-    public: "hubs.local:8080",
-    port: 8080,
-    headers: { "Access-Control-Allow-Origin": "*" },
+    allowedHosts: ["hubs.local"],
+    headers: { "Access-Control-Allow-Origin": "hubs.local" },
     before: function(app) {
       // networked-aframe makes HEAD requests to the server for time syncing. Respond with an empty body.
       app.head("*", function(req, res, next) {
-- 
GitLab