diff --git a/solution/frontend/index.html b/solution/frontend/index.html index f5ab125..6c3f519 100644 --- a/solution/frontend/index.html +++ b/solution/frontend/index.html @@ -3,8 +3,25 @@
- - + + + + + + + + + + + + diff --git a/solution/site/scripts/prerender.ts b/solution/site/scripts/prerender.ts index a42c424..8c6df86 100644 --- a/solution/site/scripts/prerender.ts +++ b/solution/site/scripts/prerender.ts @@ -26,6 +26,7 @@ import { renderLlmsTxt, renderRootRobotsTxt, renderSiteUrlset, + type SiteEntry, verifyGeo, verifyJsonLd, } from '@/seo'; @@ -509,21 +510,29 @@ function writeRootMachineFiles(outRoot: string, origin: string) { const sitesDir = join(outRoot, SITE_DIR); if (!existsSync(sitesDir)) return; - const entries = readdirSync(sitesDir, {withFileTypes: true}) + const entries: SiteEntry[] = readdirSync(sitesDir, {withFileTypes: true}) .filter((entry) => entry.isDirectory()) .map((entry) => ({slug: entry.name, file: join(sitesDir, entry.name, 'index.html')})) // index.html 이 없으면 발행이 끝나지 않은(또는 실패한) 디렉토리다. 사이트맵에 넣지 않는다. .filter((entry) => existsSync(entry.file)) .map((entry) => ({ - loc: joinUrl(origin, SITE_DIR, entry.slug) + '/', + // ★ 끝 슬래시를 붙이지 않는다. 페이지의 canonical 은 `/s/