From 0c55081f108c088ef7c2d37585228cabbf180f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=B0=EC=83=81=EB=B9=88?= Date: Tue, 18 Aug 2026 18:36:24 +0900 Subject: [PATCH] =?UTF-8?q?feat(seo):=20=EB=84=A4=EC=9D=B4=EB=B2=84=20?= =?UTF-8?q?=EC=84=9C=EC=B9=98=EC=96=B4=EB=93=9C=EB=B0=94=EC=9D=B4=EC=A0=80?= =?UTF-8?q?=20=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EC=86=8C=EC=9C=A0=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20=EB=A9=94=ED=83=80=20=ED=83=9C=EA=B7=B8=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - src/app/layout.tsx의 Metadata.verification.other에 naver-site-verification 메타 태그 추가 - tests/stage-7-seo-feed-integrations.test.tsx에 루트 레이아웃 검증 메타데이터 단위 테스트 추가 - DEPLOY.md 문서의 공개 사이트 URL을 커스텀 도메인(https://blog.boolean.kr)으로 최신화 --- DEPLOY.md | 2 +- src/app/layout.tsx | 5 +++++ tests/stage-7-seo-feed-integrations.test.tsx | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/DEPLOY.md b/DEPLOY.md index 3bab257..cbdcb58 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -4,7 +4,7 @@ | 경로 | 대상 | 설정 | | --- | --- | --- | -| GitHub Pages | 공개 사이트 (`https://cobool.github.io`) | `.github/workflows/deploy-pages.yml` | +| GitHub Pages | 공개 사이트 (`https://blog.boolean.kr`) | `.github/workflows/deploy-pages.yml` | | nginx 컨테이너 | 홈랩 | `Dockerfile` · `deploy/nginx.conf` | 둘은 독립적입니다. 아래 캐시 정책과 보안 헤더는 **nginx 경로에만 적용됩니다** — GitHub Pages는 커스텀 응답 헤더를 지원하지 않으므로 CSP·`nosniff`·`Cache-Control`이 모두 GitHub의 기본값으로 대체됩니다. diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5e90780..77feae4 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,6 +24,11 @@ export const metadata: Metadata = { authors: [{ name: siteConfig.author.name }], creator: siteConfig.author.name, publisher: siteConfig.author.name, + verification: { + other: { + "naver-site-verification": "43f4855c07e8a3aa41b09963d118eafa849c2637", + }, + }, } export const viewport: Viewport = { diff --git a/tests/stage-7-seo-feed-integrations.test.tsx b/tests/stage-7-seo-feed-integrations.test.tsx index 5c7b3a6..96c87f0 100644 --- a/tests/stage-7-seo-feed-integrations.test.tsx +++ b/tests/stage-7-seo-feed-integrations.test.tsx @@ -52,6 +52,13 @@ describe("stage 7 seo feed and integration gates", () => { expect(searchMetadata.robots).toEqual({ index: false, follow: true }) }) + it("Given root layout metadata When reading verification Then naver site verification is configured", async () => { + const { metadata: rootMetadata } = await import("../src/app/layout") + expect(rootMetadata.verification?.other?.["naver-site-verification"]).toBe( + "43f4855c07e8a3aa41b09963d118eafa849c2637", + ) + }) + it("Given valid public integration env When parsing config Then giscus, GA, and Kakao are enabled", () => { const integrations = getPublicIntegrations({ NEXT_PUBLIC_GA_MEASUREMENT_ID: "G-ABC123DEF4",