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:
@@ -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"],
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user