#!/usr/bin/env bun import fs from "fs"; const currentDate = new Date().toISOString().split("T")[0]; const sitemapTemplate = ` https://geoff.seemueller.io/ ${currentDate} 1.0 https://geoff.seemueller.io/connect ${currentDate} 0.7 `; const sitemapPath = "./public/sitemap.xml"; fs.writeFile(sitemapPath, sitemapTemplate, (err) => { if (err) { console.error("Error writing sitemap file:", err); process.exit(1); } console.log("Sitemap updated successfully with current date:", currentDate); });