feat(showcase): URL 등록만으로 OG 자동 추출하는 쇼케이스 페이지 구현#98
Draft
hyoseong1994 wants to merge 3 commits into
Draft
Conversation
8 tasks
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Ready View logs |
daleui | 15098fb | Commit Preview URL | Jul 10 2026, 07:31 AM |
4b47ae3 to
62d4e86
Compare
62d4e86 to
246b1a1
Compare
- fall back to hostname/default image when OG fetch fails or returns empty - retry transient OG fetch failures - avoid caching fallback cards so they are retried on the next build - reject duplicate showcase URLs and restrict entries to http(s) pages - track showcase.generated.json so the cache survives CI clean builds
246b1a1 to
325a157
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
쇼케이스 페이지를 빌드 타임 OG 자동 추출 방식으로 구현합니다 (#29). 기여자는
src/content/showcase/entries.ts에 프로젝트{ url }한 줄만 등록하면, 빌드 타임에 그 URL의 Open Graph 메타데이터를 추출·병합해 카드로 렌더링합니다. 기여 진입 장벽을 낮추는 것이 핵심입니다.데이터 흐름 (런타임 외부 fetch 없음)
주요 변경
open-graph-scraper도입 (상대 이미지 URL 절대화, twitter 카드 fallback)scripts/generate-showcase.mts:수동 오버라이드 ?? OG 추출값 ?? fallback순 병합,generate-og.mts의 해시 캐시 패턴 차용src/content/showcase/schema.ts: zod 2층 (기여자 입력 / 병합 카드), 스크립트·loader가 공유showcase._index.tsx:UnderConstruction→ 반응형 카드 그리드(1→2→3열)ShowcaseCard.tsx: 썸네일·제목·설명·외부 링크, stretched-link, 이미지onErrorfallbackSeoMeta재사용 +showcase정적 OG 이미지 추가테스팅
dist/client/showcase/index.html에 실제 카드(OG 추출 제목·이미지·외부 링크)가 포함됨을 확인체크 리스트