From 4cafe680643373240cbfafae60e1889fe39884cf Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Thu, 9 Jul 2026 04:39:08 +0000 Subject: [PATCH] fix: Use relative API URLs for browser compatibility VITE_API_BASE_URL must be empty (relative URLs) so API calls go to the same origin the browser loaded the page from. Setting it to http://localhost:15055 breaks when accessing via LAN hostname since the browser resolves localhost to its own machine, not the server. The Go backend handles /api/v1/* routes before the Vite proxy catch-all, so relative URLs work correctly in dev mode. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/.env b/web/.env index 238b61e..b8ca0df 100644 --- a/web/.env +++ b/web/.env @@ -1 +1 @@ -VITE_API_BASE_URL=http://localhost:15055 +VITE_API_BASE_URL=