Repository navigation
chore(deps): satori를 0.47로 올리고 OG 템플릿을 새 기본값에 맞춘다 (#208 대체) - #218
Merged
Merged
Conversation
satori 0.47은 absolute 요소를 일반 요소 위에 그리고, boxSizing 기본값이 content-box이며, p의 1em 여백을 자기 글자 크기 기준으로 계산한다. 앞 카드를 relative로, 두 카드를 border-box로, 여백 없던 p를 예전 값 16px로 명시해 OG 이미지 40장의 텍스트 줄 위치를 기존과 같게 맞췄다.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
리뷰satori 0.33.4 → 0.47.1 업그레이드와 OG 템플릿 5개 수정을 살펴봤습니다. 머지해도 될 것 같습니다. 아래는 참고 의견입니다. 좋은 점
제안 (블로킹 아님)
보안 / 성능
테스트
🤖 Generated with Claude Code |
This was referenced Oct 11, 2026
# Conflicts: # pnpm-lock.yaml
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 이미지(링크 공유 시 뜨는 미리보기 그림)를 만드는 satori를 0.33.4에서 0.47.1로 올립니다. Dependabot #208은 0.38.0까지였지만 이틀 사이 릴리스가 9번 더 나와 최신까지 한 번에 올렸습니다.
버전만 올리면 OG 이미지 40장이 전부 깨집니다. 이 구간에 레이아웃 기본값을 브라우저 CSS에 맞추는 breaking 변경이 들어 있어서 템플릿 5개에 기존 모양을 고정하는 스타일을 명시했습니다. 수정 후 40장 모두 기존 이미지와 글자 줄 위치가 픽셀 단위로 같습니다.
CI의
e2e/og-image.spec.ts는 메타 태그만 확인하므로 이 문제를 잡지 못합니다. #208의 CI가 초록이었던 이유도 그것입니다.무엇이 깨졌고 어떻게 고쳤나
position: absolute요소가 일반 요소보다 위에 그려짐position: "relative"(둘 다 위치 지정 요소가 되어 DOM 순서대로 그려짐)boxSizing기본값이content-box로 바뀜 (width: 88%에 테두리 4px이 더해짐)boxSizing: "border-box"<p>기본 여백1em을 이제<p>자신의 글자 크기(72px) 기준으로 계산. 예전에는 부모 기준 16px이었음<p>에 예전 값16px을 명시참고로 0.37.0에서 레이아웃 엔진이 Yoga에서 Taffy로 바뀌었지만(#841) 이 템플릿에서는 위 세 가지 말고 차이가 없었습니다.
yoga-layout은 의존성 트리에서 빠졌습니다.세 수정은 모두 예전 satori가 암묵적으로 쓰던 값을 그대로 적은 것입니다. satori 0.33.4에 같은 스타일을 넣어 포스트 템플릿의 레이아웃 박스를 비교했고, 수정 전과 위치가 같았습니다.
검증
dist/**/og.png40장과 이 브랜치 빌드 40장을 픽셀 단위로 비교했습니다.onNodeDetected레이아웃 박스를 직접 비교함 (예전<p>top 103px = 87 + 16px 여백)pnpm install: 피어 의존성 경고 0건, 잠금 파일 변경은 satori와 yoga-layout 제거뿐pnpm audit --audit-level=high: 통과 (moderate 2건은 main과 같음)astro check: 0 errors,astro build: 성공pnpm test:scripts: 통과머지 순서
#217(안전군 묶음)과 잠금 파일이 겹치므로, 먼저 머지되는 쪽 다음에 남은 PR은 최신 main 위에서 잠금 파일을 다시 만들어야 합니다. 머지 후 #208은 이 PR로 대체했다는 코멘트와 함께 닫습니다.
satori는 최근 릴리스가 매우 잦아서 곧 새 Dependabot PR이 열릴 수 있습니다. 그때도 CI만 보고 머지하지 말고 OG 이미지를 직접 확인해야 합니다.