feat(core-cms): add stub payload.config (empty collections/globals)

This commit is contained in:
2026-05-04 20:53:48 +02:00
parent 614b0178a0
commit 0be9e4beb4
2 changed files with 26 additions and 1 deletions

View File

@@ -1 +1 @@
export {};
export { default } from "./payload.config";

View File

@@ -0,0 +1,25 @@
import { buildConfig } from "payload";
import { postgresAdapter } from "@payloadcms/db-postgres";
import { lexicalEditor } from "@payloadcms/richtext-lexical";
import path from "node:path";
import { fileURLToPath } from "node:url";
const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
export default buildConfig({
editor: lexicalEditor(),
collections: [],
globals: [],
secret: process.env.PAYLOAD_SECRET || "default-secret-change-me",
db: postgresAdapter({
pool: {
connectionString:
process.env.DATABASE_URL ||
"postgresql://postgres:postgres@localhost:5432/template",
},
}),
typescript: {
outputFile: path.resolve(dirname, "generated-types.ts"),
},
});