wr lyStngs 호출 수정

This commit is contained in:
dongsilove
2025-10-20 21:04:38 +09:00
parent 77dd04a140
commit 6cf389c76f
3 changed files with 6 additions and 3 deletions
@@ -42,6 +42,8 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
setUserInfo(null);
const hostname = window.location.hostname;
console.log("hostname:", hostname);
console.log("LOGIN_PAGE_URL:", LOGIN_PAGE_URL);
// 개발 환경에서는 localhost 도메인 사용
//if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
+2 -3
View File
@@ -2,9 +2,8 @@
/**
* 관망도 API
*/
const API_URL = `${process.env.NEXT_PUBLIC_SEWERAGE_API_URL}/v1/map`
//const API_URL = "http://con.mind-one.co.kr:11083/sewerage-service/api/v1/map";
const API_URL = '/sewerage-service/v1/map';
export type LyrStngProps = {
lyr_sn: string
lyr_nm: string
@@ -44,6 +44,8 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
setUserInfo(null);
const hostname = window.location.hostname;
console.log("hostname:", hostname);
console.log("LOGIN_PAGE_URL:", LOGIN_PAGE_URL);
// 개발 환경에서는 localhost 도메인 사용
//if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")