Notifio is a desktop rental-listing monitor, and its website is 38 pages. notifio.app/sitemap.xml lists all 38 of them, and it is one of the better files in the repository: ten of those URLs are typed out, and the other 28 are derived from the same arrays that render the pages.
const alertPages : MetadataRoute . Sitemap = ALERT_SITES . map ( ( site ) => ( { url : `${APP_URL}/alerts/${site.slug}` , lastModified : new Date ( "2026-09-14" ) , changeFrequency : "monthly" , priority : 0.8 , } ) ) ;
Enter fullscreen mode
Exit fullscreen mode
ALERT_SITES is the array the hub grid, the route's static params and the footer column all read, so adding a site cannot half-add it: the page and its sitemap entry come from the same edit. That is the part I am happy with.
Now look at the second line.
Four dates, all typed by a person
Every lastModified in that file is a new Date("...") with a string literal in it.…