why-moved: 페이지 렌더가 색인 정책을 index 로 되돌리던 것 (#33 후속) - #35
Merged
Conversation
#33 을 프로덕션에 적용하고 검증하다가 잡았다. reindex 스크립트로 355건을 noindex 로 바꾼 직후, 그중 하나를 curl 로 열어 robots 메타를 확인했더니 "noindex, follow" 가 맞았는데 sitemap 에는 여전히 있었다. DB 를 보니 그 행이 다시 index_policy='index' 였다 — 내가 그 페이지를 연 것이 원인이었다. page.tsx 의 registerSeoPage 가 quality_score: 0.85 를 상수로 넘기고 index_policy 는 안 넘겼다. lib/seo-register.ts 는 index_policy 가 없으면 quality < SPARSE_THRESHOLD 로 판정하므로 0.85 는 항상 index 다. 즉 조용한 날 기사를 누가(크롤러 포함) 열기만 해도 색인 요청이 되살아났다. #33 에서 lib/why-moved.ts 의 생성 경로만 고치고 렌더 경로를 놓쳤다. 이제 페이지도 whyMovedIndexPolicy(article.pulses) 를 명시적으로 넘긴다. quality_score 도 0.85/0.3 으로 같이 맞춘다. 배포 순서가 중요하다: 이 수정이 라이브에 올라간 뒤에 reindex 를 다시 돌려야 한다. 반대로 하면 지금처럼 방문이 되돌린다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
#33 을 프로덕션에 적용하고 검증하다가 잡은 제 버그입니다.
reindex 로 355건을 noindex 로 바꾼 직후, 그중 하나를 열어 확인했습니다:
제가 그 페이지를 curl 로 연 것이 원인이었습니다.
page.tsx의registerSeoPage가quality_score: 0.85를 상수로 넘기고index_policy는 안 넘겼습니다.lib/seo-register.ts는index_policy가 없으면quality < SPARSE_THRESHOLD로 판정하므로 0.85 는 항상 index 입니다. 즉 조용한 날 기사를 누가 열기만 해도(크롤러 포함) 색인 요청이 되살아났습니다.#33 에서
lib/why-moved.ts의 생성 경로만 고치고 렌더 경로를 놓쳤습니다.고침
페이지도
whyMovedIndexPolicy(article.pulses)를 명시적으로 넘깁니다.quality_score도 0.85/0.3 으로 함께.배포 순서가 중요합니다
이 수정이 라이브에 올라간 뒤에
reindex-why-moved.ts를 다시 돌려야 합니다. 반대로 하면 지금처럼 방문이 되돌립니다.짚어둘 것
"적용했다"에서 멈췄으면 못 봤을 버그입니다. sitemap 숫자가 1,264 → 909 로 줄어든 것까지는 맞았고, 그 상태가 유지되지 않는다는 게 문제였습니다.
tsc·next build·check-healthclean.🤖 Generated with Claude Code