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"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@payloadcms/db-mongodb": "3.0.0-alpha.16",
|
"@payloadcms/db-mongodb": "3.0.0-alpha.25",
|
||||||
"@payloadcms/next": "3.0.0-alpha.16",
|
"@payloadcms/db-postgres": "^3.0.0-alpha.25",
|
||||||
"@payloadcms/richtext-slate": "3.0.0-alpha.16",
|
"@payloadcms/next": "3.0.0-alpha.25",
|
||||||
"@payloadcms/ui": "3.0.0-alpha.16",
|
"@payloadcms/richtext-lexical": "^3.0.0-alpha.25",
|
||||||
"next": "14.2.0-canary.1",
|
"@payloadcms/richtext-slate": "3.0.0-alpha.25",
|
||||||
"payload": "3.0.0-alpha.16",
|
"@payloadcms/ui": "3.0.0-alpha.25",
|
||||||
|
"next": "^14.1.3",
|
||||||
|
"payload": "3.0.0-alpha.25",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import path from "path";
|
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 { mongooseAdapter } from "@payloadcms/db-mongodb"; // database-adapter-import
|
||||||
import { slateEditor } from "@payloadcms/richtext-slate"; // editor-import
|
import { slateEditor } from "@payloadcms/richtext-slate"; // editor-import
|
||||||
import { buildConfig } from "payload/config";
|
import { buildConfig } from "payload/config";
|
||||||
import sharp from 'sharp'
|
import sharp from 'sharp'
|
||||||
|
|
||||||
export default buildConfig({
|
export default buildConfig({
|
||||||
editor: slateEditor({}), // editor-config
|
// editor: lexicalEditor({}),
|
||||||
|
editor: slateEditor({}),
|
||||||
collections: [
|
collections: [
|
||||||
{
|
{
|
||||||
slug: 'pages',
|
slug: 'pages',
|
||||||
@ -19,8 +21,8 @@ export default buildConfig({
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'test',
|
name: 'content',
|
||||||
type: 'number',
|
type: 'richText',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -39,9 +41,11 @@ export default buildConfig({
|
|||||||
typescript: {
|
typescript: {
|
||||||
outputFile: path.resolve(__dirname, "payload-types.ts"),
|
outputFile: path.resolve(__dirname, "payload-types.ts"),
|
||||||
},
|
},
|
||||||
graphQL: {
|
// db: postgresAdapter({
|
||||||
schemaOutputFile: path.resolve(__dirname, "generated-schema.graphql"),
|
// pool: {
|
||||||
},
|
// connectionString: process.env.POSTGRES_URI
|
||||||
|
// }
|
||||||
|
// }),
|
||||||
db: mongooseAdapter({
|
db: mongooseAdapter({
|
||||||
url: process.env.MONGODB_URI || '',
|
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,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
Loading…
Reference in New Issue
Block a user