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>
2 lines
19 B
Bash
2 lines
19 B
Bash
VITE_API_BASE_URL=
|