Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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의 기본값으로 대체됩니다.
Expand Down
5 changes: 5 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
7 changes: 7 additions & 0 deletions tests/stage-7-seo-feed-integrations.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down