From 79ea720d1878c29414e8ccb0cf5445c809f83282 Mon Sep 17 00:00:00 2001 From: Bas van Rossem Date: Thu, 19 Feb 2026 16:39:12 +0100 Subject: [PATCH] fix(web): use 127.0.0.1 instead of localhost in Vite proxy Fixes ECONNREFUSED ::1:3000 on Windows where localhost resolves to IPv6 but Fastify binds to IPv4 (0.0.0.0). Co-Authored-By: Claude Opus 4.6 --- web/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index a42f90e..23c5b3d 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -6,9 +6,9 @@ export default defineConfig({ server: { port: 5173, proxy: { - '/api': 'http://localhost:3000', + '/api': 'http://127.0.0.1:3000', '/socket.io': { - target: 'http://localhost:3000', + target: 'http://127.0.0.1:3000', ws: true, }, },