From 4e9d110bb01702cce4787e9c43f01721a8befc45 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Fri, 10 Apr 2026 14:15:27 +0700 Subject: [PATCH] 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) --- libs/service/src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/service/src/api/index.ts b/libs/service/src/api/index.ts index ff8276f..3e68f7b 100644 --- a/libs/service/src/api/index.ts +++ b/libs/service/src/api/index.ts @@ -67,7 +67,7 @@ export const getBaseURL = () => { } catch { // not in Vite context } - return ''; + return 'https://api.imphnen.dev'; }; const config: AxiosRequestConfig = {