-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] SEO 최적화 — 메타 태그 + OG 이미지 + sitemap #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| User-agent: * | ||
| Allow: / | ||
| Disallow: /account | ||
| Disallow: /settings | ||
| Disallow: /admin | ||
| Disallow: /chat | ||
| Disallow: /payment | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| Sitemap: https://www.wefin.ai.kr/sitemap.xml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/</loc> | ||
| <changefreq>daily</changefreq> | ||
| <priority>1.0</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/stocks</loc> | ||
| <changefreq>daily</changefreq> | ||
| <priority>0.9</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/history</loc> | ||
| <changefreq>weekly</changefreq> | ||
| <priority>0.8</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/about</loc> | ||
| <changefreq>monthly</changefreq> | ||
| <priority>0.5</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/terms</loc> | ||
| <changefreq>monthly</changefreq> | ||
| <priority>0.3</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://www.wefin.ai.kr/privacy</loc> | ||
| <changefreq>monthly</changefreq> | ||
| <priority>0.3</priority> | ||
| </url> | ||
| </urlset> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| import { useParams } from 'react-router-dom' | ||
|
|
||
| import SeoHead from '@/shared/ui/seo-head' | ||
|
|
||
| import { useClusterDetailQuery } from '../model/use-cluster-detail-query' | ||
| import { useMarkClusterRead } from '../model/use-mark-cluster-read' | ||
| import ClusterDetailFooter from './cluster-detail-footer' | ||
|
|
@@ -55,6 +57,7 @@ export default function ClusterDetailContent() { | |
|
|
||
| return ( | ||
| <div className="overflow-hidden rounded-2xl bg-wefin-surface p-4 sm:rounded-3xl sm:p-8"> | ||
| <SeoHead title={cluster.title} description={cluster.summary} path={`/news/${clusterId}`} /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
검색/SNS 크롤러는 💡 예시 구현- <SeoHead title={cluster.title} description={cluster.summary} path={`/news/${clusterId}`} />
+ <SeoHead
+ title={cluster.title}
+ description={truncate(cluster.summary.replace(/\s+/g, ' ').trim(), 155)}
+ path={`/news/${clusterId}`}
+ />추가로 🤖 Prompt for AI Agents |
||
| <ClusterDetailHeader cluster={cluster} /> | ||
| <ClusterDetailSections sections={cluster.sections} articleContent={cluster.articleContent} /> | ||
| <ClusterDetailFooter cluster={cluster} /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
react-helmet-async 3.0.0 React 19 meta tag deduplication behavior💡 Result:
In react-helmet-async version 3.0.0 (released March 3, 2026), when used with React 19, there is no meta tag deduplication. The library detects React version at runtime and switches behavior: for React 19+, Helmet renders native JSX elements (title, meta, link, etc.) that React automatically hoists to , acting as a transparent passthrough without the library's prior deduplication logic. For React 16-18, the original deduplication behavior (collecting instances across the component tree, removing duplicates by key attributes like name/property, and applying via manual DOM manipulation) is preserved. This change aligns with React 19's native metadata hoisting, which does not deduplicate tags—multiple renders result in duplicates in , with later ones potentially overriding earlier based on browser behavior (e.g., last title wins, but multiple metas may persist). Features like prioritizeSeoTags and SSR context serialization have no effect on React 19 path. If deduplication is needed with React 19, alternatives like
@dr.pogodin/react-helmetmaintain it, or manual logic is required.Citations:
react-helmet-asyncv3.0.0 + React 19에서 메타 태그 중복 발생 위험v3.0.0은 React 19에서
HelmetProvider를 투명한 통과층으로 만들고,<Helmet>의 메타 태그들을 네이티브 JSX로 렌더링하여 React 19의 헤드 호이스팅에 위임합니다. 이 과정에서 라이브러리의 메타 태그 중복 제거 로직이 작동하지 않아,index.html의 정적description,og:*,twitter:card태그와SeoHead가 주입하는 동일 속성 태그가 모두<head>에 렌더링됩니다.SNS 크롤러가 어떤 태그를 우선으로 사용할지는 브라우저 동작에 따라 달라지므로, 페이지별 OG 메타데이터가 의도와 다르게 인식될 수 있습니다.
다음 중 하나를 선택하세요:
index.html의 메타 태그를 최소 필수(예: 기본og:image, 사이트명)만 유지하고 나머지는SeoHead에서 관리@dr.pogodin/react-helmet같은 중복 제거를 보장하는 대안 검토🤖 Prompt for AI Agents