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 type { CollectionConfig } from "payload";
|
||||||
import {
|
import { cta, seoFields, slugifyIfMissing } from "@repo/core-shared/payload";
|
||||||
cta,
|
|
||||||
seoFields,
|
|
||||||
slugifyIfMissing,
|
|
||||||
} from "@repo/core-shared/payload";
|
|
||||||
|
|
||||||
export const pages: CollectionConfig = {
|
export const pages: CollectionConfig = {
|
||||||
slug: "pages",
|
slug: "pages",
|
||||||
|
custom: {
|
||||||
|
retention: {
|
||||||
|
purgeSchedule: "monthly",
|
||||||
|
postDeletion: {
|
||||||
|
duration: "P90D",
|
||||||
|
trigger: "after-deletion",
|
||||||
|
action: "hard-delete",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
admin: {
|
admin: {
|
||||||
useAsTitle: "title",
|
useAsTitle: "title",
|
||||||
defaultColumns: ["title", "status", "updatedAt"],
|
defaultColumns: ["title", "status", "updatedAt"],
|
||||||
|
|||||||
@@ -2,6 +2,16 @@ import type { GlobalConfig } from "payload";
|
|||||||
|
|
||||||
export const siteSettings: GlobalConfig = {
|
export const siteSettings: GlobalConfig = {
|
||||||
slug: "site-settings",
|
slug: "site-settings",
|
||||||
|
custom: {
|
||||||
|
retention: {
|
||||||
|
purgeSchedule: "monthly",
|
||||||
|
postDeletion: {
|
||||||
|
duration: "P90D",
|
||||||
|
trigger: "after-deletion",
|
||||||
|
action: "hard-delete",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
admin: {
|
admin: {
|
||||||
group: "Settings",
|
group: "Settings",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user