feat: [문서스냅샷] Lazy Snapshot + rendered_html 캡처

- capture-rendered-html 유틸 추가
- 검사성적서/작업일지 저장 시 HTML 스냅샷 캡처
- 중간검사/작업일지 조회 시 자동 스냅샷
- DocumentViewer 스냅샷 출력 지원
This commit is contained in:
2026-03-07 03:02:59 +09:00
parent 8b6da749a9
commit 04f2a8a74c
2 changed files with 38 additions and 1 deletions

View File

@@ -198,7 +198,8 @@ export function DocumentViewer({
}
}
} catch {
// 변환 실패 시 원본 src 유지
// 변환 실패 시 빈 이미지로 대체 (Puppeteer에서 proxy URL 요청 방지)
clonedImg.setAttribute('src', 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
}
}
})