diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 22a1047..29a7f79 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -282,7 +282,9 @@ function seoPages(): Plugin { writeFileSync(file, f.html) } const today = new Date().toISOString().slice(0, 10) - const urls = ['', ...faqs.map((f) => f.path), ...PAGES.map((p) => p.path)].map((path) => ` ${site}/${path}${today}`) + // 내일 페이지와 시도별 FAQ 는 페이지는 만들되 사이트맵에는 넣지 않는다 (틀이 같은 주소가 너무 많아서) + const listed = [...faqs, ...PAGES].map((p) => p.path).filter((path) => !path.startsWith('tomorrow/') && !path.startsWith('faq/')) + const urls = ['', ...listed].map((path) => ` ${site}/${path}${today}`) writeFileSync(resolve(outDir, 'sitemap.xml'), `\n\n${urls.join('\n')}\n\n`) }, }