diff --git a/docs/RELEASE-NOTES.md b/docs/RELEASE-NOTES.md index d87f4ec..0dfd1a8 100644 --- a/docs/RELEASE-NOTES.md +++ b/docs/RELEASE-NOTES.md @@ -4,6 +4,9 @@ ## [Unreleased] +### 수정 +- 지도: S57EncOverlay API URL을 공유 API_BASE_URL로 통합 + ## [2026-03-31.2] ### 추가 diff --git a/frontend/src/common/components/map/S57EncOverlay.tsx b/frontend/src/common/components/map/S57EncOverlay.tsx index 2408037..9211754 100644 --- a/frontend/src/common/components/map/S57EncOverlay.tsx +++ b/frontend/src/common/components/map/S57EncOverlay.tsx @@ -1,8 +1,8 @@ import { useEffect, useRef } from 'react'; import { useMap } from '@vis.gl/react-maplibre'; +import { API_BASE_URL } from '../../services/api'; -const TILES_BASE = import.meta.env.VITE_API_URL?.replace(/\/api$/, '') || 'http://localhost:3001'; -const PROXY_PREFIX = `${TILES_BASE}/api/tiles/enc`; +const PROXY_PREFIX = `${API_BASE_URL}/tiles/enc`; const ENC_SPRITE_ID = 'enc-s57'; const ENC_SOURCE_ID = 'enc-s57';