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 {