fix: make Payload migrations runnable on Node 24
This commit is contained in:
parent
1f593fcab4
commit
5e7c40ab05
1487
apps/cms/package-lock.json
generated
1487
apps/cms/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,6 @@
|
||||
"dependencies": {
|
||||
"@payloadcms/db-postgres": "3.88.0",
|
||||
"@payloadcms/next": "3.88.0",
|
||||
"@payloadcms/richtext-lexical": "3.88.0",
|
||||
"next": "16.3.4",
|
||||
"payload": "3.88.0",
|
||||
"react": "19.2.8",
|
||||
|
||||
@ -1,17 +1,15 @@
|
||||
import { buildConfig } from "payload";
|
||||
import { postgresAdapter } from "@payloadcms/db-postgres";
|
||||
import { lexicalEditor } from "@payloadcms/richtext-lexical";
|
||||
import { HomeContent } from "./src/collections/HomeContent";
|
||||
import { Media } from "./src/collections/Media";
|
||||
import { Products } from "./src/collections/Products";
|
||||
import { SiteSettings } from "./src/collections/SiteSettings";
|
||||
import { Users } from "./src/collections/Users";
|
||||
import { HomeContent } from "./src/collections/HomeContent.ts";
|
||||
import { Media } from "./src/collections/Media.ts";
|
||||
import { Products } from "./src/collections/Products.ts";
|
||||
import { SiteSettings } from "./src/collections/SiteSettings.ts";
|
||||
import { Users } from "./src/collections/Users.ts";
|
||||
|
||||
export default buildConfig({
|
||||
admin: { user: Users.slug },
|
||||
collections: [Users, Products, Media],
|
||||
globals: [SiteSettings, HomeContent],
|
||||
editor: lexicalEditor(),
|
||||
secret: process.env.PAYLOAD_SECRET || "development-only-change-me",
|
||||
db: postgresAdapter({ pool: { connectionString: process.env.DATABASE_URI || "" } }),
|
||||
typescript: { outputFile: "./src/payload-types.ts" },
|
||||
|
||||
@ -14,7 +14,7 @@ export const Products: CollectionConfig = {
|
||||
{ name: "slug", type: "text", required: true, unique: true, index: true },
|
||||
{ name: "category", type: "text", required: true },
|
||||
{ name: "summary", type: "textarea", required: true },
|
||||
{ name: "description", type: "richText", required: true },
|
||||
{ name: "description", type: "textarea", required: true },
|
||||
{ name: "cover", type: "upload", relationTo: "media" },
|
||||
{ name: "features", type: "array", fields: [{ name: "value", type: "text" }] },
|
||||
{ name: "specs", type: "json" },
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
"noEmit": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"jsx": "react-jsx",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user