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) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 04:39:08 +00:00
parent f066dd7e99
commit 4cafe68064

View File

@@ -1 +1 @@
VITE_API_BASE_URL=http://localhost:15055 VITE_API_BASE_URL=