From 2b783618d279753486ccf4ff54da00ecb69b8126 Mon Sep 17 00:00:00 2001 From: fan ka Date: Thu, 5 Dec 2024 22:54:43 +0800 Subject: [PATCH] fix: change webpack dev server port to avoid websocket conflict (#77) chore: change webpack dev server port to avoid websocket conflict --- demo/interactive-demo/README.md | 9 +-------- demo/interactive-demo/prover-ts/webpack.js | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/demo/interactive-demo/README.md b/demo/interactive-demo/README.md index 1dfb89c..f74d820 100644 --- a/demo/interactive-demo/README.md +++ b/demo/interactive-demo/README.md @@ -35,11 +35,4 @@ wstcp --bind-addr 127.0.0.1:55688 swapi.dev:443 npm link npm run dev ``` - 3. Open and click **Start Prover** - -## Troubleshooting - -* `Failed to connect to the server. CloseEvent...`: - * Did you start the Verifier? - * Did you start the Websocket Proxy? - * Is the Server online? \ No newline at end of file + 3. Open and click **Start Prover** diff --git a/demo/interactive-demo/prover-ts/webpack.js b/demo/interactive-demo/prover-ts/webpack.js index a3b0fc5..4a0aaec 100644 --- a/demo/interactive-demo/prover-ts/webpack.js +++ b/demo/interactive-demo/prover-ts/webpack.js @@ -105,6 +105,9 @@ var options = { // - https://github.com/GoogleChromeLabs/wasm-bindgen-rayon#setting-up // - https://web.dev/i18n/en/coop-coep/ devServer: { + port: 3456, + host: 'localhost', + hot: true, headers: { 'Cross-Origin-Embedder-Policy': 'require-corp', 'Cross-Origin-Opener-Policy': 'same-origin',