feat: manage generic page fallback copy via payload

This commit is contained in:
syntaxbullet
2026-06-22 13:00:02 +02:00
parent b4b4820e46
commit 9cf23552cc
9 changed files with 101 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import { post1 } from './post-1'
import { post2 } from './post-2'
import { post3 } from './post-3'
import { defaultFooterData, defaultHeaderData } from '@/spa/cmsNavigation'
import { defaultSiteSettings } from '@/spa/siteSettings'
const collections: CollectionSlug[] = [
'categories',
@@ -21,7 +22,7 @@ const collections: CollectionSlug[] = [
'search',
]
const globals: GlobalSlug[] = ['header', 'footer']
const globals: GlobalSlug[] = ['header', 'footer', 'site-settings']
const categories = ['Technology', 'News', 'Finance', 'Design', 'Software', 'Engineering']
@@ -228,6 +229,10 @@ export const seed = async ({
slug: 'footer',
data: footerSeedData as never,
}),
payload.updateGlobal({
slug: 'site-settings',
data: defaultSiteSettings as never,
}),
])
payload.logger.info('Seeded database successfully!')