From a6fc874f1149f756f5c2324a581131e2cf826c3a Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 18 May 2026 19:08:04 +0000 Subject: [PATCH] feat(blog): add retention metadata to articles collection Monthly purge schedule with 90-day post-deletion hard-delete window. Part of compliance backfill (Story 05). Co-Authored-By: Claude Sonnet 4.6 --- .../blog/src/integrations/cms/collections/articles.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/blog/src/integrations/cms/collections/articles.ts b/packages/blog/src/integrations/cms/collections/articles.ts index 70323ba..09f5898 100644 --- a/packages/blog/src/integrations/cms/collections/articles.ts +++ b/packages/blog/src/integrations/cms/collections/articles.ts @@ -3,6 +3,16 @@ import { slugifyIfMissing } from "@repo/core-shared/payload"; export const articles: CollectionConfig = { slug: "articles", + custom: { + retention: { + purgeSchedule: "monthly", + postDeletion: { + duration: "P90D", + trigger: "after-deletion", + action: "hard-delete", + }, + }, + }, admin: { useAsTitle: "title", defaultColumns: ["title", "status", "author", "updatedAt"],