From 99033d13dbd73a8222e87ada30794aaac05e6d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EA=B2=BD?= Date: Fri, 13 Nov 2026 15:46:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9D=B4=ED=8A=B8=EB=A7=B5?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=82=B4=EC=9D=BC=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80(/tomorrow/=E2=80=A6)=EC=99=80=20=EC=8B=9C=EB=8F=84?= =?UTF-8?q?=EB=B3=84=20FAQ(/faq/{=EC=8B=9C=EB=8F=84})=20=EC=A0=9C=EC=99=B8?= =?UTF-8?q?=20=E2=80=94=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=8A=94=20=EA=B7=B8?= =?UTF-8?q?=EB=8C=80=EB=A1=9C=20=EB=A7=8C=EB=93=A4=EA=B3=A0=20noindex=20?= =?UTF-8?q?=EB=8A=94=20=EB=84=A3=EC=A7=80=20=EC=95=8A=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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`) }, }