프로덕션 환경 수정

This commit is contained in:
dohyeons 2025-10-23 18:03:11 +09:00
parent 23be8a0eee
commit ce07ca3c00
1 changed files with 6 additions and 0 deletions

View File

@ -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 (