fix: 개발 도구 실행 링크(nalssigak://expo-development-client/…)를 웹 경로로 열어 앱이 빈 화면이 되던 것 — 사이트 주소로 바꾸는 링크 변환에서 제외

This commit is contained in:
skkim committed 2026-11-13 17:09:00 +09:00
1 parent 2b6657c951
commit b03a3d501d
1 file changed
+2
+2
View File
@@ -17,6 +17,8 @@ const APP_UA = `NalssigakApp/${Constants.expoConfig?.version ?? '0'}`;
/** 앱 링크(https://weather.o2o.kr/…)와 앱 주소(nalssigak://today/…)를 사이트 주소로 바꾼다. 날씨각 주소가 아니면 null */
function toSiteUrl(link: string): string | null {
// 개발 도구가 앱을 열 때 쓰는 링크(nalssigak://expo-development-client/…)는 사이트 주소가 아니다
if (link.startsWith('nalssigak://expo-development-client')) return null;
const scheme = /^nalssigak:\/\/(.*)$/.exec(link);
const url = scheme ? `${SITE_URL}/${scheme[1]}` : link;
try {