chore: bumps dependencies
This commit is contained in:
parent
c518842ff1
commit
3e3c462a8a
@ -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
10
next.config.mjs
Normal 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);
|
14
package.json
14
package.json
@ -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"
|
||||
|
@ -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 || '',
|
||||
}),
|
||||
|
1639
pnpm-lock.yaml
1639
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
|
Loading…
Reference in New Issue
Block a user