From 7455ccc3b7c3b6aea41e21c89bbd2fab28b61b51 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Fri, 24 Jul 2020 18:41:11 +0200 Subject: [PATCH 1/7] Use desktop v1.0.7 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaa3841..a47ecd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,7 +122,7 @@ jobs: uses: actions/checkout@v2 with: repository: maputnik/desktop - ref: v1.0.6 + ref: v1.0.7 path: ./src/github.com/maputnik/desktop/ - name: Make From 553b17822d8066dbd2c8d3c4c9728bc8e11a719a Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 14:19:06 +0100 Subject: [PATCH 2/7] Try disable host check for codesandbox. --- config/webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index ecccaf9..765bf70 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -53,7 +53,8 @@ module.exports = { // See for details poll: (!!process.env.WEBPACK_DEV_SERVER_POLLING ? true : false), watch: false - } + }, + disableHostCheck: (process.env.CODESANDBOX_SSE === "true"), }, plugins: [ new webpack.NoEmitOnErrorsPlugin(), From 6ca2af7f8a9ec7fb045b529826465f9ba41e572f Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 14:46:09 +0100 Subject: [PATCH 3/7] Change codesandbox check. --- config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 765bf70..3c0dffc 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -54,7 +54,7 @@ module.exports = { poll: (!!process.env.WEBPACK_DEV_SERVER_POLLING ? true : false), watch: false }, - disableHostCheck: (process.env.CODESANDBOX_SSE === "true"), + disableHostCheck: !!process.env.CODESANDBOX_SSE, }, plugins: [ new webpack.NoEmitOnErrorsPlugin(), From 2676583833daf09e2aa4e55765baed234d404e27 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 14:55:12 +0100 Subject: [PATCH 4/7] Added start-sandbox script. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4faa04e..f0e5881 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "test-watch": "cross-env NODE_ENV=test wdio config/wdio.conf.js --watch", "start": "webpack-dev-server --progress --profile --colors --config config/webpack.config.js", "start-prod": "webpack-dev-server --progress --profile --colors --config config/webpack.production.config.js", + "start-sandbox": "webpack-dev-server --host 0.0.0.0 --progress --profile --colors --config config/webpack.production.config.js", "lint-js": "eslint --ext js --ext jsx src test", "lint-css": "stylelint \"src/styles/*.scss\"", "lint": "npm run lint-js && npm run lint-css", From c12db1703b62933cfe33cc8a95983ba68a30b8b3 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 14:55:51 +0100 Subject: [PATCH 5/7] Changed start script for codesandbox. --- sandbox.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox.config.json b/sandbox.config.json index a2847a4..e241c0f 100644 --- a/sandbox.config.json +++ b/sandbox.config.json @@ -1,5 +1,5 @@ { "container": { - "startScript": "start-prod" + "startScript": "start-sandbox" } } From 381ff6292fed84e14cfa6db4dc96df3120612ddf Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 14:56:39 +0100 Subject: [PATCH 6/7] Removed disableHostCheck from ./config/webpack.config.js --- config/webpack.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 3c0dffc..4c0d6ab 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -54,7 +54,6 @@ module.exports = { poll: (!!process.env.WEBPACK_DEV_SERVER_POLLING ? true : false), watch: false }, - disableHostCheck: !!process.env.CODESANDBOX_SSE, }, plugins: [ new webpack.NoEmitOnErrorsPlugin(), From 4dee95fa2eec09f1cae288c8d0f79e870ad6e4e8 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 9 Sep 2020 15:02:14 +0100 Subject: [PATCH 7/7] Added --disable-host-check --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f0e5881..69a6860 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test-watch": "cross-env NODE_ENV=test wdio config/wdio.conf.js --watch", "start": "webpack-dev-server --progress --profile --colors --config config/webpack.config.js", "start-prod": "webpack-dev-server --progress --profile --colors --config config/webpack.production.config.js", - "start-sandbox": "webpack-dev-server --host 0.0.0.0 --progress --profile --colors --config config/webpack.production.config.js", + "start-sandbox": "webpack-dev-server --disable-host-check --host 0.0.0.0 --progress --profile --colors --config config/webpack.production.config.js", "lint-js": "eslint --ext js --ext jsx src test", "lint-css": "stylelint \"src/styles/*.scss\"", "lint": "npm run lint-js && npm run lint-css",