wr lyStngs 호출 수정
This commit is contained in:
@@ -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,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")
|
||||
|
||||
Reference in New Issue
Block a user