chore: bumps dependencies

This commit is contained in:
James
2024-03-06 16:18:34 -05:00
parent c518842ff1
commit 3e3c462a8a
7 changed files with 8275 additions and 112 deletions

View File

@ -1,12 +1,14 @@
import path from "path";
import { postgresAdapter } from '@payloadcms/db-postgres'
// import { lexicalEditor } from '@payloadcms/richtext-lexical'
import { mongooseAdapter } from "@payloadcms/db-mongodb"; // database-adapter-import
import { slateEditor } from "@payloadcms/richtext-slate"; // editor-import
import { buildConfig } from "payload/config";
import sharp from 'sharp'
export default buildConfig({
editor: slateEditor({}), // editor-config
// editor: lexicalEditor({}),
editor: slateEditor({}),
collections: [
{
slug: 'pages',
@ -19,8 +21,8 @@ export default buildConfig({
type: 'text',
},
{
name: 'test',
type: 'number',
name: 'content',
type: 'richText',
}
]
},
@ -39,9 +41,11 @@ export default buildConfig({
typescript: {
outputFile: path.resolve(__dirname, "payload-types.ts"),
},
graphQL: {
schemaOutputFile: path.resolve(__dirname, "generated-schema.graphql"),
},
// db: postgresAdapter({
// pool: {
// connectionString: process.env.POSTGRES_URI
// }
// }),
db: mongooseAdapter({
url: process.env.MONGODB_URI || '',
}),