diff --git a/.data/leads-backup.jsonl b/.data/leads-backup.jsonl new file mode 100644 index 00000000..15997a5d --- /dev/null +++ b/.data/leads-backup.jsonl @@ -0,0 +1 @@ +{"timestamp":"2026-06-09T17:18:52.824Z","name":"John Doe","email":"john@example.com","productName":null,"message":"Hello, this is a test message."}\n{"timestamp":"2026-06-09T17:18:52.855Z","name":"Tester","email":"testing@mintel.me","productName":null,"message":"Test"}\n{"timestamp":"2026-06-09T17:20:50.586Z","name":"John Doe","email":"john@example.com","productName":null,"message":"Hello, this is a test message."}\n{"timestamp":"2026-06-09T17:20:50.613Z","name":"Tester","email":"testing@mintel.me","productName":null,"message":"Test"}\n \ No newline at end of file diff --git a/lib/pages.ts b/lib/pages.ts index d417bc37..c112fa3e 100644 --- a/lib/pages.ts +++ b/lib/pages.ts @@ -51,7 +51,13 @@ export async function getPageBySlug(slug: string, locale: string): Promise { + return 'data="{' + p1.replace(/"/g, '"') + '}"'; + }); + + let parsedContent = fixedContent; try { if (content.trim().startsWith('{')) { parsedContent = JSON.parse(content); diff --git a/lib/pdf-business-card.tsx b/lib/pdf-business-card.tsx index 6a7324d7..744d6c5b 100644 --- a/lib/pdf-business-card.tsx +++ b/lib/pdf-business-card.tsx @@ -316,7 +316,7 @@ const parseSvgPaths = (filePath: string) => { const VectorLogo = ({ paths, style }: { paths: { d: string; fill: string }[]; style: any }) => ( - + {paths.map((p, i) => ( ))} diff --git a/lib/products.ts b/lib/products.ts index a170af90..7e901a3a 100644 --- a/lib/products.ts +++ b/lib/products.ts @@ -39,7 +39,13 @@ export async function getProductBySlug(slug: string, locale: string): Promise { + return 'data="{' + p1.replace(/"/g, '"') + '}"'; + }); + + let parsedContent = fixedContent; try { if (content.trim().startsWith('{')) { parsedContent = JSON.parse(content);