chore: remove legacy mdx artifacts and dependencies
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Failing after 55s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / ⚡ Performance & Accessibility (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-26 01:47:30 +01:00
parent 7d65237ee9
commit 3de13b4fb3
132 changed files with 521 additions and 223914 deletions

View File

@@ -11,13 +11,13 @@ export interface PageFrontmatter {
public?: boolean;
}
export interface PageMdx {
export interface PageData {
slug: string;
frontmatter: PageFrontmatter;
content: any; // Lexical AST Document
}
function mapDoc(doc: any): PageMdx {
function mapDoc(doc: any): PageData {
return {
slug: doc.slug,
frontmatter: {
@@ -41,7 +41,7 @@ function mapDoc(doc: any): PageMdx {
};
}
export async function getPageBySlug(slug: string, locale: string): Promise<PageMdx | null> {
export async function getPageBySlug(slug: string, locale: string): Promise<PageData | null> {
try {
const payload = await getPayload({ config: configPromise });
@@ -63,7 +63,7 @@ export async function getPageBySlug(slug: string, locale: string): Promise<PageM
}
}
export async function getAllPages(locale: string): Promise<PageMdx[]> {
export async function getAllPages(locale: string): Promise<PageData[]> {
try {
const payload = await getPayload({ config: configPromise });
@@ -80,7 +80,7 @@ export async function getAllPages(locale: string): Promise<PageMdx[]> {
}
}
export async function getAllPagesMetadata(locale: string): Promise<Partial<PageMdx>[]> {
export async function getAllPagesMetadata(locale: string): Promise<Partial<PageData>[]> {
try {
const payload = await getPayload({ config: configPromise });