From ce07ca3c00ab658efdd1a6e6a63625d12f911a51 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Thu, 23 Oct 2025 18:03:11 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=EB=8D=95=EC=85=98=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/lib/api/client.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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 (