fix: proxy to 127.0.0.1:8000 to avoid Node.js localhost IPv6 ECONNREFUSED

This commit is contained in:
Atharv1705
2026-11-15 00:38:55 +05:30
parent 640ae9c1b4
commit 8ebdd0142c
+1 -1
View File
@@ -11,7 +11,7 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
"/api": { target: "http://localhost:8000", changeOrigin: true },
"/api": { target: "http://127.0.0.1:8000", changeOrigin: true },
},
},
test: {