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 <noreply@anthropic.com>
This commit is contained in:
Bas van Rossem
2026-02-19 16:39:12 +01:00
parent 047d4e9776
commit 79ea720d18

View File

@@ -6,9 +6,9 @@ export default defineConfig({
server: { server: {
port: 5173, port: 5173,
proxy: { proxy: {
'/api': 'http://localhost:3000', '/api': 'http://127.0.0.1:3000',
'/socket.io': { '/socket.io': {
target: 'http://localhost:3000', target: 'http://127.0.0.1:3000',
ws: true, ws: true,
}, },
}, },