feat: sitemap/robots.txt 및 페이지별 SEO 메타 태그 반영 - #255
Merged
Conversation
Search Console 등록 시 SPA 특성상 모든 라우트가 같은 index.html을 반환해 색인 품질이 떨어지는 문제를 개선한다. useSeo 훅으로 라우트별 title/description/canonical/OG를 갱신하고, 로그인 필요 페이지는 noindex 처리했다. robots.txt는 비공개 경로를 막고 백엔드가 동적 생성하는 sitemap.xml 위치를 안내한다. Closes #254
Merged
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.
변경 내용
index.html:lang="ko", 기본 description/OG/Twitter 카드/canonical 추가shared/hooks/useSeo추가 — 라우트 전환 시 title/description/canonical/OG를 갱신하고noindex로 색인 제어noindex, nofollow적용public/robots.txt추가 — 비공개 경로 Disallow + Sitemap 위치 명시nginx.conf에/sitemap.xml을 backend로 프록시하는 location 추가 (SPA fallback을 타지 않도록)백엔드 쌍 PR: sitemap.xml 동적 생성 엔드포인트 — YouthPick/back-end#(연결 예정)
검증
corepack pnpm run lint통과corepack pnpm run build통과 (dist/robots.txt, index.html meta 태그 정상 출력 확인)연결 이슈
Closes #254