chore: upgrade PayloadCMS to 3.59.1
This commit is contained in:
28
package.json
28
package.json
@@ -22,19 +22,19 @@
|
|||||||
"test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts"
|
"test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@payloadcms/admin-bar": "3.57.0",
|
"@payloadcms/admin-bar": "3.59.1",
|
||||||
"@payloadcms/db-mongodb": "3.57.0",
|
"@payloadcms/db-mongodb": "3.59.1",
|
||||||
"@payloadcms/live-preview-react": "3.57.0",
|
"@payloadcms/live-preview-react": "3.59.1",
|
||||||
"@payloadcms/next": "3.57.0",
|
"@payloadcms/next": "3.59.1",
|
||||||
"@payloadcms/payload-cloud": "3.57.0",
|
"@payloadcms/payload-cloud": "3.59.1",
|
||||||
"@payloadcms/plugin-form-builder": "3.57.0",
|
"@payloadcms/plugin-form-builder": "3.59.1",
|
||||||
"@payloadcms/plugin-nested-docs": "3.57.0",
|
"@payloadcms/plugin-nested-docs": "3.59.1",
|
||||||
"@payloadcms/plugin-redirects": "3.57.0",
|
"@payloadcms/plugin-redirects": "3.59.1",
|
||||||
"@payloadcms/plugin-search": "3.57.0",
|
"@payloadcms/plugin-search": "3.59.1",
|
||||||
"@payloadcms/plugin-seo": "3.57.0",
|
"@payloadcms/plugin-seo": "3.59.1",
|
||||||
"@payloadcms/richtext-lexical": "3.57.0",
|
"@payloadcms/richtext-lexical": "3.59.1",
|
||||||
"@payloadcms/storage-r2": "^3.59.1",
|
"@payloadcms/storage-s3": "^3.59.1",
|
||||||
"@payloadcms/ui": "3.57.0",
|
"@payloadcms/ui": "3.59.1",
|
||||||
"@radix-ui/react-checkbox": "^1.0.4",
|
"@radix-ui/react-checkbox": "^1.0.4",
|
||||||
"@radix-ui/react-label": "^2.0.2",
|
"@radix-ui/react-label": "^2.0.2",
|
||||||
"@radix-ui/react-select": "^2.0.0",
|
"@radix-ui/react-select": "^2.0.0",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.378.0",
|
||||||
"next": "15.4.4",
|
"next": "15.4.4",
|
||||||
"next-sitemap": "^4.2.3",
|
"next-sitemap": "^4.2.3",
|
||||||
"payload": "3.57.0",
|
"payload": "3.59.1",
|
||||||
"prism-react-renderer": "^2.3.1",
|
"prism-react-renderer": "^2.3.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
|
|||||||
1854
pnpm-lock.yaml
generated
1854
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,12 @@
|
|||||||
// storage-adapter-import-placeholder
|
// storage-adapter-import-placeholder
|
||||||
|
import { s3Storage } from '@payloadcms/storage-s3'
|
||||||
import { mongooseAdapter } from '@payloadcms/db-mongodb'
|
import { mongooseAdapter } from '@payloadcms/db-mongodb'
|
||||||
|
|
||||||
import sharp from 'sharp' // sharp-import
|
import sharp from 'sharp' // sharp-import
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { buildConfig, PayloadRequest } from 'payload'
|
import { buildConfig, PayloadRequest } from 'payload'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
import { r2Storage } from '@payloadcms/storage-r2'
|
|
||||||
import { Categories } from './collections/Categories'
|
import { Categories } from './collections/Categories'
|
||||||
import { Media } from './collections/Media'
|
import { Media } from './collections/Media'
|
||||||
import { Pages } from './collections/Pages'
|
import { Pages } from './collections/Pages'
|
||||||
@@ -66,9 +67,21 @@ export default buildConfig({
|
|||||||
cors: [getServerSideURL()].filter(Boolean),
|
cors: [getServerSideURL()].filter(Boolean),
|
||||||
globals: [Header, Footer],
|
globals: [Header, Footer],
|
||||||
plugins: [
|
plugins: [
|
||||||
r2Storage({
|
...plugins,
|
||||||
bucket: cloudflare.env.R2,
|
s3Storage({
|
||||||
collections: { media: true },
|
collections: {
|
||||||
|
media: true,
|
||||||
|
},
|
||||||
|
bucket: process.env.R2_BUCKET,
|
||||||
|
config: {
|
||||||
|
endpoint: `https://${process.env.R2_ACCOUNT_ID}.r2.cloudflarestorage.com`,
|
||||||
|
credentials: {
|
||||||
|
accessKeyId: process.env.R2_ACCESS_KEY_ID,
|
||||||
|
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY,
|
||||||
|
},
|
||||||
|
region: 'auto',
|
||||||
|
// ... Other S3 configuration
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
secret: process.env.PAYLOAD_SECRET,
|
secret: process.env.PAYLOAD_SECRET,
|
||||||
|
|||||||
Reference in New Issue
Block a user