Menu

Our sitemap tells Google 32 pages changed on 14 September, and the edge cache says the HTML was built on 18 October
📰

Our sitemap tells Google 32 pages changed on 14 September, and the edge cache says the HTML was built on 18 October

DEV Community: nextjs·Daniel Pertu·6 days ago
#DEMvA1N7
#devtonextjs#devto#dev#pages#sitemap
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.