- pnpm-lock.yaml 롤백
- 빌드 에러 수정
This commit is contained in:
swcho
2025-10-21 15:41:15 +09:00
parent bc39549bcc
commit 45ea8d30f6
4 changed files with 1420 additions and 1422 deletions
@@ -44,12 +44,12 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
const hostname = window.location.hostname;
// 개발 환경에서는 localhost 도메인 사용
//if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
router.push("/"); // 개발시 홈으로 돌아가기
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
// router.push는 같은 Next.js 앱 내에서만 작동하므로 다른 앱으로 이동할 때는 window.location.href 사용
//if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
}
}
})();
@@ -46,12 +46,12 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
const hostname = window.location.hostname;
// 개발 환경에서는 localhost 도메인 사용
//if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
router.push("/"); // 개발시 홈으로 돌아가기
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
// router.push는 같은 Next.js 앱 내에서만 작동하므로 다른 앱으로 이동할 때는 window.location.href 사용
//if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
}
}
})();
@@ -46,12 +46,12 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
const hostname = window.location.hostname;
// 개발 환경에서는 localhost 도메인 사용
//if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
router.push("/"); // 개발시 홈으로 돌아가기
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
// router.push는 같은 Next.js 앱 내에서만 작동하므로 다른 앱으로 이동할 때는 window.location.href 사용
//if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
}
}
})();
+1414 -1416
View File
File diff suppressed because it is too large Load Diff