diff --git a/frontend/lib/api/client.ts b/frontend/lib/api/client.ts index 9aa0eb02..7dc811c9 100644 --- a/frontend/lib/api/client.ts +++ b/frontend/lib/api/client.ts @@ -11,6 +11,12 @@ const getApiBaseUrl = (): string => { if (typeof window !== "undefined") { const currentHost = window.location.hostname; const currentPort = window.location.port; + const protocol = window.location.protocol; + + // 프로덕션 환경: v1.vexplor.com → api.vexplor.com + if (currentHost === "v1.vexplor.com") { + return "https://api.vexplor.com/api"; + } // 로컬 개발환경: localhost:9771 또는 localhost:3000 → localhost:8080 if (