chore: migrate to payload / nextjs
This commit is contained in:
88
src/endpoints/seed/home-static.ts
Normal file
88
src/endpoints/seed/home-static.ts
Normal file
@@ -0,0 +1,88 @@
|
||||
import type { RequiredDataFromCollectionSlug } from 'payload'
|
||||
|
||||
// Used for pre-seeded content so that the homepage is not empty
|
||||
export const homeStatic: RequiredDataFromCollectionSlug<'pages'> = {
|
||||
slug: 'home',
|
||||
_status: 'published',
|
||||
hero: {
|
||||
type: 'lowImpact',
|
||||
richText: {
|
||||
root: {
|
||||
type: 'root',
|
||||
children: [
|
||||
{
|
||||
type: 'heading',
|
||||
children: [
|
||||
{
|
||||
type: 'text',
|
||||
detail: 0,
|
||||
format: 0,
|
||||
mode: 'normal',
|
||||
style: '',
|
||||
text: 'Payload Website Template',
|
||||
version: 1,
|
||||
},
|
||||
],
|
||||
direction: 'ltr',
|
||||
format: '',
|
||||
indent: 0,
|
||||
tag: 'h1',
|
||||
version: 1,
|
||||
},
|
||||
{
|
||||
type: 'paragraph',
|
||||
children: [
|
||||
{
|
||||
type: 'link',
|
||||
children: [
|
||||
{
|
||||
type: 'text',
|
||||
detail: 0,
|
||||
format: 0,
|
||||
mode: 'normal',
|
||||
style: '',
|
||||
text: 'Visit the admin dashboard',
|
||||
version: 1,
|
||||
},
|
||||
],
|
||||
direction: 'ltr',
|
||||
fields: {
|
||||
linkType: 'custom',
|
||||
newTab: false,
|
||||
url: '/admin',
|
||||
},
|
||||
format: '',
|
||||
indent: 0,
|
||||
version: 2,
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
detail: 0,
|
||||
format: 0,
|
||||
mode: 'normal',
|
||||
style: '',
|
||||
text: ' to make your account and seed content for your website.',
|
||||
version: 1,
|
||||
},
|
||||
],
|
||||
direction: 'ltr',
|
||||
format: '',
|
||||
indent: 0,
|
||||
textFormat: 0,
|
||||
version: 1,
|
||||
},
|
||||
],
|
||||
direction: 'ltr',
|
||||
format: '',
|
||||
indent: 0,
|
||||
version: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
meta: {
|
||||
description: 'An open-source website built with Payload and Next.js.',
|
||||
title: 'Payload Website Template',
|
||||
},
|
||||
title: 'Home',
|
||||
layout: [],
|
||||
}
|
||||
Reference in New Issue
Block a user