We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7e5f64 + 1f176c4 commit 5aaa79cCopy full SHA for 5aaa79c
2 files changed
web_demo/client/.env.local
@@ -1,3 +1,2 @@
1
VITE_QUEUE_API_PATH=/api
2
-VITE_QUEUE_API_URL=http://localhost:11235
3
-VITE_WORKER_ADDR=localhost:11235
+VITE_SIMPLEX_TARGET=http://localhost:11236
web_demo/client/vite.config.ts
@@ -3,11 +3,13 @@ import topLevelAwait from "vite-plugin-top-level-await";
4
export default defineConfig(({ mode }) => {
5
const env = loadEnv(mode, process.cwd());
6
+
7
+ const simplexTarget = env.VITE_SIMPLEX_TARGET || "http://localhost:11236";
8
- // proxy config for simplex (11236)
9
+ // proxy config for half-duplex (11236)
10
const proxyConf: Record<string, string | ProxyOptions> = {
11
"/api/simplex": {
- target: "http://localhost:11236",
12
+ target: simplexTarget,
13
changeOrigin: true,
14
ws: true,
15
secure: false,
0 commit comments