fix: set default API base URL to https://api.imphnen.dev

VITE_API_URL was never set in the Nix build, so getBaseURL() returned
empty string causing all API calls to hit the current origin (e.g.
hackathon.imphnen.dev) instead of api.imphnen.dev. This caused 405
errors on login since the frontend server doesn't handle POST.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-04-10 14:15:27 +07:00
co-authored by Claude Opus 4.6
parent c6719b19e5
commit 4e9d110bb0
+1 -1
View File
@@ -67,7 +67,7 @@ export const getBaseURL = () => {
} catch {
// not in Vite context
}
return '';
return 'https://api.imphnen.dev';
};
const config: AxiosRequestConfig = {