feat: cache marka api responses

This commit is contained in:
Max Richter
2025-11-04 12:09:17 +01:00
parent bb4e895770
commit fea9b69d4d
9 changed files with 163 additions and 98 deletions

View File

@@ -26,7 +26,7 @@ function generateJsonLd(resource: GenericResource): string {
if (resource.content?.datePublished) {
try {
baseSchema.datePublished = formatDate(
new Date(resource.content.datePublished),
resource.content.datePublished,
);
} catch (_) {
// Ignore invalid date