gc-wing/apps/web/src/shared/lib/map/mapTilerKey.ts
htlee ec9d894ac8 refactor: FSD 위반 해소 — 공유 상수/함수를 shared/로 이동
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 00:04:40 +09:00

10 lines
307 B
TypeScript

// Moved from widgets/map3d/lib/mapCore.ts to resolve FSD layer violation
// (features/ must not import from widgets/).
export function getMapTilerKey(): string | null {
const k = import.meta.env.VITE_MAPTILER_KEY;
if (typeof k !== 'string') return null;
const v = k.trim();
return v ? v : null;
}