feat(marketing-pages): add retention metadata to pages and site-settings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 19:12:17 +00:00
parent b5c16a76c1
commit cc000e1ad4
2 changed files with 21 additions and 5 deletions

View File

@@ -1,12 +1,18 @@
import type { CollectionConfig } from "payload";
import {
cta,
seoFields,
slugifyIfMissing,
} from "@repo/core-shared/payload";
import { cta, seoFields, slugifyIfMissing } from "@repo/core-shared/payload";
export const pages: CollectionConfig = {
slug: "pages",
custom: {
retention: {
purgeSchedule: "monthly",
postDeletion: {
duration: "P90D",
trigger: "after-deletion",
action: "hard-delete",
},
},
},
admin: {
useAsTitle: "title",
defaultColumns: ["title", "status", "updatedAt"],

View File

@@ -2,6 +2,16 @@ import type { GlobalConfig } from "payload";
export const siteSettings: GlobalConfig = {
slug: "site-settings",
custom: {
retention: {
purgeSchedule: "monthly",
postDeletion: {
duration: "P90D",
trigger: "after-deletion",
action: "hard-delete",
},
},
},
admin: {
group: "Settings",
},