Files
clean-architecture-frontend…/scripts/lib
DongHyeonka 7922592c07 fix(hosting): live probe가 하위 경로 기준 URL에서 surface를 그 아래로 요청한다
문제: `HOSTING_BASE_URL`의 경로가 `/`가 아니면 probe가 거절해, 하위 경로
(`VITE_ROUTER_BASE_PATH=/app/`)로 배포한 release는 live 확인을 쓸 수
없었다. surface 경로(`/config.json`)도 늘 origin 루트로 풀었다.

고친 것: 기준 URL은 `/`로 끝나는 경로면 받는다(query·fragment는 거절).
`config/hosting/cache-policy.json`의 surface 경로는 기준 URL 아래로 푼다
(`surfaceUrl`). 진입 script는 index.html이 적은 그대로 요청한다. 후보의
진입 script가 기준 경로 아래에 있는지(`deployment base-path`)도 보아, 다른
경로로 빌드한 후보를 잘못된 기준 URL로 재면 실패한다.

검증: desktop `node scripts/run-vitest.ts run tests/unit/hosting-probe.test.ts`
46건 통과(`/app/` 기준 요청 경로, 경로 불일치 실패, URL 분류). 기준
커밋에서는 새 시험이 실패한다.

Refs: 0929/13-06
2026-11-13 23:29:13 +09:00
..
2026-08-01 19:39:59 +09:00
2026-08-01 19:39:59 +09:00