chore: scaffolds ssr rte

This commit is contained in:
Jacob Fletcher
2024-02-21 13:56:04 -05:00
parent 122e8ac9d6
commit bc0525589c
23 changed files with 476 additions and 201 deletions

View File

@@ -10,6 +10,10 @@ export const PostsCollection: CollectionConfig = {
name: 'text',
type: 'text',
},
{
name: 'richText',
type: 'richText',
},
{
name: 'associatedMedia',
access: {

View File

@@ -5,6 +5,7 @@ import type { Config, SanitizedConfig } from '../packages/payload/src/config/typ
import { mongooseAdapter } from '../packages/db-mongodb/src'
import { postgresAdapter } from '../packages/db-postgres/src'
import { buildConfig as buildPayloadConfig } from '../packages/payload/src/config/build'
import { slateEditor } from '../packages/richtext-slate/src'
// process.env.PAYLOAD_DATABASE = 'postgres'
@@ -24,8 +25,7 @@ const databaseAdapters = {
export function buildConfigWithDefaults(testConfig?: Partial<Config>): Promise<SanitizedConfig> {
const config: Config = {
secret: 'TEST_SECRET',
// editor: slateEditor({}),
editor: undefined,
editor: slateEditor({}),
rateLimit: {
max: 9999999999,
window: 15 * 60 * 1000, // 15min default,