diff --git a/src/lib/config.ts b/src/lib/config.ts index 898a14d..ab59f63 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -5,7 +5,7 @@ export const API_BASE = env("VITE_API_BASE_URL") || (location.hostname === "localhost" ? "http://localhost:8000" // 로컬 기본: FastAPI - : "https://api.biryu2000.kr"); // 배포 기본: 동일 오리진 프록시 가정 + : `${location.origin}`); // 배포 기본: 동일 오리진 프록시 가정 const rawAdminBase = env("VITE_ADMIN_BASE_PATH") ?? "/siteManage"; export const ADMIN_BASE = rawAdminBase.startsWith("/") ? rawAdminBase : `/${rawAdminBase}`;