feat: manage generic page fallback copy via payload
This commit is contained in:
@@ -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!')
|
||||
|
||||
Reference in New Issue
Block a user