From 95220c19e8fbae3b6dd51acaef8ad699cfac0914 Mon Sep 17 00:00:00 2001 From: "Stefan.Brueck" Date: Wed, 18 Oct 2023 14:43:02 +0200 Subject: [PATCH 1/2] fix: invalid host header issue on codesandbox solves Issue #94 (The examples no longer work in CodeSandbox environments.) We need to add the allowedhosts-flag to devServer-settings for webpack.config: devServer-config to solve "Invalid Host header Issue" on CodeSandBox: https://github.com/codesandbox/codesandbox-client/issues/3392 and https://stackoverflow.com/a/43647767 and https://codesandbox.io/docs/learn/repositories/task#configuring-task-ports https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#firewall https://webpack.js.org/configuration/dev-server/#devserverallowedhosts firewall: false, // failed while testing disableHostCheck: true, // failed while testing allowedHosts: This flag finally solved it --- .github/contributing.md | 1 + .../find-components/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/find-components/webpack.config.js | 3 +++ examples/five-star/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/five-star/webpack.config.js | 3 +++ .../.codesandbox/tasks.json | 22 +++++++++++++++++++ .../webpack.config.js | 3 +++ examples/gondel-react/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/gondel-react/webpack.config.js | 3 +++ examples/hello-world/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/hello-world/webpack.config.js | 3 +++ examples/lazy-load/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/lazy-load/webpack.config.js | 3 +++ examples/plugin-data/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/plugin-data/webpack.config.js | 3 +++ .../.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/plugin-media-query/webpack.config.js | 3 +++ .../plugin-resize/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/plugin-resize/webpack.config.js | 3 +++ examples/react-gondel/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/react-gondel/webpack.config.js | 3 +++ .../.codesandbox/tasks.json | 22 +++++++++++++++++++ .../trigger-public-event/webpack.config.js | 3 +++ examples/typescript/.codesandbox/tasks.json | 22 +++++++++++++++++++ examples/typescript/webpack.config.js | 3 +++ 25 files changed, 301 insertions(+) create mode 100644 examples/find-components/.codesandbox/tasks.json create mode 100644 examples/five-star/.codesandbox/tasks.json create mode 100644 examples/get-component-by-dom-node/.codesandbox/tasks.json create mode 100644 examples/gondel-react/.codesandbox/tasks.json create mode 100644 examples/hello-world/.codesandbox/tasks.json create mode 100644 examples/lazy-load/.codesandbox/tasks.json create mode 100644 examples/plugin-data/.codesandbox/tasks.json create mode 100644 examples/plugin-media-query/.codesandbox/tasks.json create mode 100644 examples/plugin-resize/.codesandbox/tasks.json create mode 100644 examples/react-gondel/.codesandbox/tasks.json create mode 100644 examples/trigger-public-event/.codesandbox/tasks.json create mode 100644 examples/typescript/.codesandbox/tasks.json diff --git a/.github/contributing.md b/.github/contributing.md index c28953c..c266c94 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -2,6 +2,7 @@ We are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :) +All our CodeSandBox-Samples are [synced-templates](https://codesandbox.io/docs/learn/sandboxes/synced-templates) with our GitHub-repo: they will update automatically, once our repositories main branch got updated. ## How to contribute diff --git a/examples/find-components/.codesandbox/tasks.json b/examples/find-components/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/find-components/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/find-components/webpack.config.js b/examples/find-components/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/find-components/webpack.config.js +++ b/examples/find-components/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/five-star/.codesandbox/tasks.json b/examples/five-star/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/five-star/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/five-star/webpack.config.js b/examples/five-star/webpack.config.js index 54ecf35..e3be267 100644 --- a/examples/five-star/webpack.config.js +++ b/examples/five-star/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', module: { diff --git a/examples/get-component-by-dom-node/.codesandbox/tasks.json b/examples/get-component-by-dom-node/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/get-component-by-dom-node/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/get-component-by-dom-node/webpack.config.js b/examples/get-component-by-dom-node/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/get-component-by-dom-node/webpack.config.js +++ b/examples/get-component-by-dom-node/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/gondel-react/.codesandbox/tasks.json b/examples/gondel-react/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/gondel-react/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/gondel-react/webpack.config.js b/examples/gondel-react/webpack.config.js index 3e364ea..f11ba78 100644 --- a/examples/gondel-react/webpack.config.js +++ b/examples/gondel-react/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', module: { diff --git a/examples/hello-world/.codesandbox/tasks.json b/examples/hello-world/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/hello-world/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/hello-world/webpack.config.js b/examples/hello-world/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/hello-world/webpack.config.js +++ b/examples/hello-world/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/lazy-load/.codesandbox/tasks.json b/examples/lazy-load/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/lazy-load/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/lazy-load/webpack.config.js b/examples/lazy-load/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/lazy-load/webpack.config.js +++ b/examples/lazy-load/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/plugin-data/.codesandbox/tasks.json b/examples/plugin-data/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/plugin-data/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/plugin-data/webpack.config.js b/examples/plugin-data/webpack.config.js index fd31a68..6b025d4 100644 --- a/examples/plugin-data/webpack.config.js +++ b/examples/plugin-data/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', plugins: [ diff --git a/examples/plugin-media-query/.codesandbox/tasks.json b/examples/plugin-media-query/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/plugin-media-query/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/plugin-media-query/webpack.config.js b/examples/plugin-media-query/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/plugin-media-query/webpack.config.js +++ b/examples/plugin-media-query/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/plugin-resize/.codesandbox/tasks.json b/examples/plugin-resize/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/plugin-resize/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/plugin-resize/webpack.config.js b/examples/plugin-resize/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/plugin-resize/webpack.config.js +++ b/examples/plugin-resize/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/react-gondel/.codesandbox/tasks.json b/examples/react-gondel/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/react-gondel/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/react-gondel/webpack.config.js b/examples/react-gondel/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/react-gondel/webpack.config.js +++ b/examples/react-gondel/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/trigger-public-event/.codesandbox/tasks.json b/examples/trigger-public-event/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/trigger-public-event/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/trigger-public-event/webpack.config.js b/examples/trigger-public-event/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/trigger-public-event/webpack.config.js +++ b/examples/trigger-public-event/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/typescript/.codesandbox/tasks.json b/examples/typescript/.codesandbox/tasks.json new file mode 100644 index 0000000..e4eae12 --- /dev/null +++ b/examples/typescript/.codesandbox/tasks.json @@ -0,0 +1,22 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + // Set 8080 as primary port for task start + "port": 8080 + } + } + } +} diff --git a/examples/typescript/webpack.config.js b/examples/typescript/webpack.config.js index fd31a68..6b025d4 100644 --- a/examples/typescript/webpack.config.js +++ b/examples/typescript/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', plugins: [ From a9b09eeffe8ba50a4c7ae8edc138c7d109dc0e14 Mon Sep 17 00:00:00 2001 From: "Stefan.Brueck" Date: Fri, 20 Oct 2023 10:08:44 +0200 Subject: [PATCH 2/2] fix: invalid host header issue on codesandbox solves Issue #94 (The examples no longer work in CodeSandbox environments.) We need to add the allowedhosts-flag to devServer-settings for webpack.config: devServer-config to solve "Invalid Host header Issue" on CodeSandBox: https://github.com/codesandbox/codesandbox-client/issues/3392 and https://stackoverflow.com/a/43647767 and https://codesandbox.io/docs/learn/repositories/task#configuring-task-ports https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#firewall https://webpack.js.org/configuration/dev-server/#devserverallowedhosts firewall: false, // failed while testing disableHostCheck: true, // failed while testing allowedHosts: This flag finally solved it --- .github/contributing.md | 2 +- examples/find-components/.codesandbox/tasks.json | 4 ---- examples/five-star/.codesandbox/tasks.json | 4 ---- examples/get-component-by-dom-node/.codesandbox/tasks.json | 4 ---- examples/gondel-react/.codesandbox/tasks.json | 4 ---- examples/hello-world/.codesandbox/tasks.json | 4 ---- examples/lazy-load/.codesandbox/tasks.json | 4 ---- examples/plugin-data/.codesandbox/tasks.json | 4 ---- examples/plugin-media-query/.codesandbox/tasks.json | 4 ---- examples/plugin-resize/.codesandbox/tasks.json | 4 ---- examples/react-gondel/.codesandbox/tasks.json | 4 ---- examples/trigger-public-event/.codesandbox/tasks.json | 4 ---- examples/typescript/.codesandbox/tasks.json | 4 ---- 13 files changed, 1 insertion(+), 49 deletions(-) diff --git a/.github/contributing.md b/.github/contributing.md index c266c94..21dde68 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -2,7 +2,7 @@ We are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :) -All our CodeSandBox-Samples are [synced-templates](https://codesandbox.io/docs/learn/sandboxes/synced-templates) with our GitHub-repo: they will update automatically, once our repositories main branch got updated. +All our CodeSandBox-Samples are [synced-templates](https://codesandbox.io/docs/learn/sandboxes/synced-templates) with our GitHub-repo: they will update automatically, once our repositories master branch got updated. ## How to contribute diff --git a/examples/find-components/.codesandbox/tasks.json b/examples/find-components/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/find-components/.codesandbox/tasks.json +++ b/examples/find-components/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/five-star/.codesandbox/tasks.json b/examples/five-star/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/five-star/.codesandbox/tasks.json +++ b/examples/five-star/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/get-component-by-dom-node/.codesandbox/tasks.json b/examples/get-component-by-dom-node/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/get-component-by-dom-node/.codesandbox/tasks.json +++ b/examples/get-component-by-dom-node/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/gondel-react/.codesandbox/tasks.json b/examples/gondel-react/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/gondel-react/.codesandbox/tasks.json +++ b/examples/gondel-react/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/hello-world/.codesandbox/tasks.json b/examples/hello-world/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/hello-world/.codesandbox/tasks.json +++ b/examples/hello-world/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/lazy-load/.codesandbox/tasks.json b/examples/lazy-load/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/lazy-load/.codesandbox/tasks.json +++ b/examples/lazy-load/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/plugin-data/.codesandbox/tasks.json b/examples/plugin-data/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/plugin-data/.codesandbox/tasks.json +++ b/examples/plugin-data/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/plugin-media-query/.codesandbox/tasks.json b/examples/plugin-media-query/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/plugin-media-query/.codesandbox/tasks.json +++ b/examples/plugin-media-query/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/plugin-resize/.codesandbox/tasks.json b/examples/plugin-resize/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/plugin-resize/.codesandbox/tasks.json +++ b/examples/plugin-resize/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/react-gondel/.codesandbox/tasks.json b/examples/react-gondel/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/react-gondel/.codesandbox/tasks.json +++ b/examples/react-gondel/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/trigger-public-event/.codesandbox/tasks.json b/examples/trigger-public-event/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/trigger-public-event/.codesandbox/tasks.json +++ b/examples/trigger-public-event/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } } diff --git a/examples/typescript/.codesandbox/tasks.json b/examples/typescript/.codesandbox/tasks.json index e4eae12..1cac0fb 100644 --- a/examples/typescript/.codesandbox/tasks.json +++ b/examples/typescript/.codesandbox/tasks.json @@ -1,20 +1,16 @@ { - // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], - - // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "start": { "name": "start", "command": "yarn start", "runAtStart": true, "preview": { - // Set 8080 as primary port for task start "port": 8080 } }