Configure Payload with Postgres + push true
This commit is contained in:
@@ -2,11 +2,13 @@
|
|||||||
"name": "hooklab",
|
"name": "hooklab",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint"
|
"lint": "eslint",
|
||||||
|
"payload": "payload"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@payloadcms/db-postgres": "^3.78.0",
|
"@payloadcms/db-postgres": "^3.78.0",
|
||||||
@@ -29,6 +31,7 @@
|
|||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "^15.5.12",
|
"eslint-config-next": "^15.5.12",
|
||||||
"tailwindcss": "^4",
|
"tailwindcss": "^4",
|
||||||
|
"tsx": "^4.21.0",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ export default buildConfig({
|
|||||||
},
|
},
|
||||||
db: postgresAdapter({
|
db: postgresAdapter({
|
||||||
pool: {
|
pool: {
|
||||||
connectionString: process.env.DATABASE_URL,
|
connectionString: process.env.DATABASE_URL!,
|
||||||
},
|
},
|
||||||
|
push: true,
|
||||||
}),
|
}),
|
||||||
collections: [Services, Realisations, Articles, Testimonials, FAQ, Media],
|
collections: [Services, Realisations, Articles, Testimonials, FAQ, Media],
|
||||||
globals: [],
|
globals: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user