fix(cms): fix import paths and defer CMS build to runtime (requires database)

This commit is contained in:
2026-04-06 14:44:42 +02:00
parent 683b05dbf3
commit f313d6841f
8 changed files with 37 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import type { CollectionConfig } from "payload";
import { articleFields } from "./fields.js";
import { autoGenerateSlug } from "./hooks/before-change.js";
import { articleFields } from "./fields";
import { autoGenerateSlug } from "./hooks/before-change";
export const Articles: CollectionConfig = {
slug: "articles",