Conversation
- Map.tsx: early return 제거 → 로딩 상태를 absolute 오버레이로 전환해 DOM 교체로 인한 CLS 제거 - page.tsx: section에 contain-layout 추가 - sitemap.ts: gacha_posts 전체를 동적으로 포함, lastModified를 각 게시글 created_at으로 설정
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR #7 — fix: CLS 개선 및 SEO 강화3rdflr/gacha_map ·
|
카카오 동의 화면에서 취소를 누르면 error=access_denied 쿼리가 붙어 콜백 URL로 리다이렉트되는데, 이를 감지하지 못해 스피너가 무한히 돌던 문제 수정 - useSearchParams로 error 쿼리 파라미터 감지 후 즉시 홈으로 이동 - session/error 모두 없는 경우(직접 URL 접근)도 홈으로 처리 - useSearchParams 사용을 위해 Suspense로 래핑
PR #7 — fix: CLS 개선 및 SEO 강화3rdflr/gacha_map ·
|
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.
요약
CLS(Cumulative Layout Shift) 개선
h-[80vh]컨테이너를 유지하고, 로딩 중에는absolute오버레이로 스피너를 표시section에contain-layout추가하여 내부 레이아웃 변화가 외부에 영향을 주지 않도록 격리sitemap SEO 강화
gacha_posts테이블의 모든 게시글을 동적으로 sitemap에 포함created_at을lastModified로 사용하여 크롤러 신뢰도 향상lastModified를 매 빌드마다 바뀌는new Date()→ 고정값으로 수정테스트 체크리스트
/sitemap.xml접근 시 가챠보드 게시글 URL 포함 여부 확인