추가수정 (claude)
This commit is contained in:
parent
205dc05251
commit
272385a120
|
|
@ -21,7 +21,13 @@ const getApiBaseUrl = (): string => {
|
||||||
return "http://localhost:8080/api";
|
return "http://localhost:8080/api";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 서버 환경 (내부/외부 IP 모두): → 39.117.244.52:8080
|
// 서버 환경에서 localhost:5555 → 39.117.244.52:8080
|
||||||
|
if ((currentHost === "localhost" || currentHost === "127.0.0.1") && currentPort === "5555") {
|
||||||
|
console.log("🌍 서버 환경 (localhost:5555) 감지 → 39.117.244.52:8080/api");
|
||||||
|
return "http://39.117.244.52:8080/api";
|
||||||
|
}
|
||||||
|
|
||||||
|
// 기타 서버 환경 (내부/외부 IP): → 39.117.244.52:8080
|
||||||
console.log("🌍 서버 환경 감지 → 39.117.244.52:8080/api");
|
console.log("🌍 서버 환경 감지 → 39.117.244.52:8080/api");
|
||||||
return "http://39.117.244.52:8080/api";
|
return "http://39.117.244.52:8080/api";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue