From 497905329320ac7db031271f91286d68da858c37 Mon Sep 17 00:00:00 2001 From: YoanRos Date: Thu, 28 Dec 2023 10:47:41 +0100 Subject: [PATCH] fix: delete unused code --- pages/site-map.xml.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pages/site-map.xml.js b/pages/site-map.xml.js index 8a64365..925a2ab 100644 --- a/pages/site-map.xml.js +++ b/pages/site-map.xml.js @@ -66,10 +66,6 @@ function generateSiteMap(posts) { ` } -export default function SiteMap() { - return
{/* Render your sitemap content here */}
-} - export async function getStaticProps() { const files = fs.readdirSync(path.join(process.cwd(), "content")) @@ -91,7 +87,6 @@ export async function getStaticProps() { ) const sitemap = generateSiteMap(posts) - console.log(sitemap) fs.writeFileSync(path.join(process.cwd(), "public", "sitemap.xml"), sitemap) return {