diff --git a/README.md b/README.md index 6b69ee90b..dd77e3391 100644 --- a/README.md +++ b/README.md @@ -202,3 +202,5 @@ http://dev.onasys.co.kr:8000/webjars/swagger-ui/index.html?urls.primaryName=atta - 쿠키명 : menu-code-key - 해당 메뉴 쿠키 데이터 가져와 페이지 권한 및 상당 Breadcrumb 데이터 전달 처리 +## FSD 관련 +https://fsd.how/kr/docs/get-started/overview/ diff --git a/apps/fo/app/api/proxy/[...url]/route.ts b/apps/fo/app/api/proxy/[...url]/route.ts index 39f4281e3..17aecff95 100644 --- a/apps/fo/app/api/proxy/[...url]/route.ts +++ b/apps/fo/app/api/proxy/[...url]/route.ts @@ -1,3 +1,14 @@ +/** + * 📄 Proxy Route + * API 프록시 라우트 + * + * - 서버 API로의 요청 프록시 처리 + * - 쿠키 기반 인증 토큰 및 리프레시 토큰 관리 + * - POST 및 PUT 요청 핸들링 + * - 사용자 인증 정보 검증 및 응답 처리 + * - 에러 핸들링 및 상태 코드 반환 + * - 사이트 ID 및 헤더 설정 + */ import { ACCESS_TOKEN, AUTH_USER_ID, @@ -113,12 +124,8 @@ export async function PUT( } function getCookieDomain(): string | undefined { - if (typeof window === "undefined") return undefined; - - if (COOKIE_DOMAIN) return COOKIE_DOMAIN; - - const { hostname } = window.location; - if (hostname === "localhost" || hostname === "127.0.0.1") return undefined; - - return hostname; + // 개발에서는 현재 사이트 전용, 운영에서는 환경변수의 공용 도메인을 사용한다. + return process.env.NODE_ENV === "production" + ? COOKIE_DOMAIN || undefined + : undefined; } diff --git a/apps/sn/app/(map-layout)/map/components/exmn/exmn-layer-setting-panel.tsx b/apps/sn/app/(map-layout)/map/components/exmn/exmn-layer-setting-panel.tsx index f02827016..eb940ce63 100644 --- a/apps/sn/app/(map-layout)/map/components/exmn/exmn-layer-setting-panel.tsx +++ b/apps/sn/app/(map-layout)/map/components/exmn/exmn-layer-setting-panel.tsx @@ -5,6 +5,7 @@ "use client"; import type { ExmnMapFilters, ExmnMapJobType } from "./exmn-map-types"; +import { EXMN_RESULT_PPL_LEGEND_COLOR } from "./exmn-map-types"; import LayerSettingCard from "../layer-setting/layer-setting-card"; type Props = { @@ -52,7 +53,8 @@ export default function ExmnLayerSettingPanel({