chore(products): migrate payload CMS lexical AST into permanent markdown
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 11s
Build & Deploy / 🧪 QA (push) Successful in 1m10s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled

This commit is contained in:
2026-08-07 17:18:02 +02:00
parent 0554460153
commit 2be0d1ea92
26 changed files with 428 additions and 30 deletions

View File

@@ -17,7 +17,6 @@ import Link from 'next/link';
import { notFound, redirect } from 'next/navigation';
import ProductEngagementTracker from '@/components/analytics/ProductEngagementTracker';
import MDXContent from '@/components/MDXContent';
import { lexicalToMarkdown } from '@/lib/mdx-utils';
interface ProductPageProps {
params: Promise<{
@@ -296,10 +295,6 @@ export default async function ProductPage({ params }: ProductPageProps) {
const rawJsonStr = dataMatch[1].replace(/&quot;/g, '"');
const data = JSON.parse(rawJsonStr);
technicalItems = data.technicalItems || [];
if (data.content?.root && descriptionContent.trim() === '') {
descriptionContent = lexicalToMarkdown(data.content.root);
}
} catch (e) {
console.error('Failed to parse productTabs data for page:', e);
}