Skip to content

Commit 5aaa79c

Browse files
authored
Merge pull request #11 from Junehom/main
fix: update client env param setting
2 parents c7e5f64 + 1f176c4 commit 5aaa79c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

web_demo/client/.env.local

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
VITE_QUEUE_API_PATH=/api
2-
VITE_QUEUE_API_URL=http://localhost:11235
3-
VITE_WORKER_ADDR=localhost:11235
2+
VITE_SIMPLEX_TARGET=http://localhost:11236

web_demo/client/vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import topLevelAwait from "vite-plugin-top-level-await";
33

44
export default defineConfig(({ mode }) => {
55
const env = loadEnv(mode, process.cwd());
6+
7+
const simplexTarget = env.VITE_SIMPLEX_TARGET || "http://localhost:11236";
68

7-
// proxy config for simplex (11236)
9+
// proxy config for half-duplex (11236)
810
const proxyConf: Record<string, string | ProxyOptions> = {
911
"/api/simplex": {
10-
target: "http://localhost:11236",
12+
target: simplexTarget,
1113
changeOrigin: true,
1214
ws: true,
1315
secure: false,

0 commit comments

Comments
 (0)