feat: activate payload cms collections
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
// payload/collections/Articles.ts
|
||||
// Schéma Payload CMS pour les articles de blog.
|
||||
// COMMENTÉ — activé lors de la migration vers Payload.
|
||||
|
||||
/*
|
||||
import type { CollectionConfig } from 'payload'
|
||||
import { lexicalEditor } from '@payloadcms/richtext-lexical'
|
||||
|
||||
@@ -78,17 +73,3 @@ export const Articles: CollectionConfig = {
|
||||
},
|
||||
],
|
||||
}
|
||||
*/
|
||||
|
||||
export type PayloadArticle = {
|
||||
id: string;
|
||||
slug: string;
|
||||
title: string;
|
||||
excerpt: string;
|
||||
content: unknown; // Lexical rich text
|
||||
category: string;
|
||||
publishedAt: string;
|
||||
status: "draft" | "published";
|
||||
seoTitle?: string;
|
||||
seoDescription?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user