File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11VITE_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
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ import topLevelAwait from "vite-plugin-top-level-await";
33
44export 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 ,
You can’t perform that action at this time.
0 commit comments