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,10 +0,0 @@
const withPayload = require("@payloadcms/next/withPayload");
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@payloadcms/db-mongodb"],
},
};
module.exports = withPayload(nextConfig);

10
next.config.mjs Normal file
View File

@ -0,0 +1,10 @@
import withPayload from "@payloadcms/next/withPayload";
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
// serverComponentsExternalPackages: ["@payloadcms/db-mongodb"],
},
};
export default withPayload(nextConfig);

View File

@ -9,12 +9,14 @@
"lint": "next lint"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.0.0-alpha.16",
"@payloadcms/next": "3.0.0-alpha.16",
"@payloadcms/richtext-slate": "3.0.0-alpha.16",
"@payloadcms/ui": "3.0.0-alpha.16",
"next": "14.2.0-canary.1",
"payload": "3.0.0-alpha.16",
"@payloadcms/db-mongodb": "3.0.0-alpha.25",
"@payloadcms/db-postgres": "^3.0.0-alpha.25",
"@payloadcms/next": "3.0.0-alpha.25",
"@payloadcms/richtext-lexical": "^3.0.0-alpha.25",
"@payloadcms/richtext-slate": "3.0.0-alpha.25",
"@payloadcms/ui": "3.0.0-alpha.25",
"next": "^14.1.3",
"payload": "3.0.0-alpha.25",
"react": "^18",
"react-dom": "^18",
"sharp": "0.32.6"

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 || '',
}),

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",

6694
yarn.lock Normal file

File diff suppressed because it is too large Load Diff