From fcc3e2ec8af9e00ba7f8197c38640ec03a1daf7c Mon Sep 17 00:00:00 2001 From: Marc Vilanova Date: Tue, 29 Nov 2022 12:37:26 -0800 Subject: [PATCH] Replaces localhost with 127.0.0.1 in Vite config to resolve connection issue with Node and Vite --- src/dispatch/static/dispatch/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/static/dispatch/vite.config.js b/src/dispatch/static/dispatch/vite.config.js index 96cf45283141..4cfe9f931756 100644 --- a/src/dispatch/static/dispatch/vite.config.js +++ b/src/dispatch/static/dispatch/vite.config.js @@ -22,7 +22,7 @@ export default defineConfig({ port: 8080, proxy: { "^/api": { - target: "http://localhost:8000", + target: "http://127.0.0.1:8000", ws: false, changeOrigin: true, },