fix(frontend): resolve published blog detail 404
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-06-08 22:36:27 +03:30
parent 37b123838f
commit 8b1fc942cf
4 changed files with 21 additions and 13 deletions

View File

@@ -12,6 +12,8 @@ import { formatJalali } from "@/lib/utils";
type Params = Promise<{ slug: string }>;
export const dynamic = "force-dynamic";
function cleanText(value?: string | null) {
if (!value) return "";
return value.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();