fix: 닫힌 지역 바꾸기 창의 숨은 지역 링크 269개 제거 — 구글 색인 급감(566개 중 46개) 원인 후보, 검색 로봇용으로만 넣은 링크라 숨긴 링크 정책 소지. 11/10 검색 노출 기록·원인 분석

This commit is contained in:
skkim committed 2026-11-10 13:43:45 +09:00
1 parent 189d51f1ce
commit 775c28e6ca
2 files changed
+12 -17

No files matched your search

-17
View File
@@ -1,6 +1,5 @@
import { useInfiniteQuery, useMutation, useQuery, useQueryClient, type InfiniteData } from '@tanstack/react-query'
import { useCallback, useDeferredValue, useEffect, useMemo, useRef, useState, type FormEvent, type ReactNode } from 'react'
import regionPages from '../../seo/region.json'
import { clearTokens, setTokens, subscribeAuth } from '@nalssigak/shared/api/auth'
import { SITE_URL } from '../api/setup'
import {
@@ -186,7 +185,6 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void
{shown.type === 'gameHelp' && <GameHelpSheet />}
</div>
)}
{!shown && <RegionLinks />}
</dialog>
)
}
@@ -1373,21 +1371,6 @@ const pageHref = (code: string) => {
return p ? `/today/${p.path}` : '/'
}
/** 지역 바꾸기가 닫혀 있을 때도 지역 페이지 링크를 HTML에 둔다 (검색 로봇이 링크를 따라가게) */
function RegionLinks() {
return (
<nav aria-label="지역별 오늘 날씨">
<ul>
{regionPages.map((p) => (
<li key={p.path}>
<a href={`/today/${p.path}`}>{p.name} 오늘 날씨</a>
</li>
))}
</ul>
</nav>
)
}
function RegionSheet({ onDone }: { onDone: () => void }) {
const { region, setRegion, locate, locateStatus } = useRegion()
const { me, logout } = useAuth()