add payload cms config

This commit is contained in:
Enguerrand Ozano
2026-02-28 14:34:53 +01:00
parent 6028dec0d8
commit 05284eab72
3 changed files with 5431 additions and 112 deletions

5511
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,10 +9,14 @@
"lint": "eslint"
},
"dependencies": {
"@payloadcms/db-postgres": "^3.78.0",
"@payloadcms/next": "^3.78.0",
"@payloadcms/richtext-lexical": "^3.78.0",
"clsx": "^2.1.1",
"next": "^15.5.12",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next": "15.3.9",
"payload": "^3.78.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"resend": "^6.9.1",
"sharp": "^0.34.5"
},

22
payload.config.ts Normal file
View File

@@ -0,0 +1,22 @@
import { buildConfig } from 'payload'
import { postgresAdapter } from '@payloadcms/db-postgres'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import { Services } from './payload/collections/Services'
import { Realisations } from './payload/collections/Realisations'
import { Articles } from './payload/collections/Articles'
import { Testimonials } from './payload/collections/Testimonials'
import { FAQ } from './payload/collections/FAQ'
import { SiteSettings } from './payload/globals/SiteSettings'
export default buildConfig({
secret: process.env.PAYLOAD_SECRET || 'change-moi',
editor: lexicalEditor(),
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URL,
},
}),
collections: [Services, Realisations, Articles, Testimonials, FAQ],
globals: [SiteSettings],
})