Closed AjaniBilby closed 1 year ago
The publication_date is just date
field in news object.
ex:
{
title: entry.title,
publication: { ... },
date: entry.publishAt.toISOString()
}
also using the SitemapFunction
type you get autocomplete and type checking.
ex:
import type { SitemapFunction } from 'remix-sitemap';
export const sitemap: SitemapFunction = () => {}
publication_date
-> date
, was an unexpected transformation 😅
I'm used to swapping const functions to function functions because of the performance difference when they first started becoming popular... I should probably get out of that old habbit
I'm using the following code to generate my sitemap data for a particular dynamic route:
Which then generates xml elements like:
The fact that
publication_date
is missing when it's a required field is quite a problem