Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3eea1c35a6
commit
2b0db26a93
171 files changed
+1477
-807
No files matched your search
@@ -3,6 +3,7 @@ import { notFound } from "next/navigation";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
import { CourseDetailTemplate } from "@/components/templates/CourseDetailTemplate";
|
||||
import { getCourseById } from "@/lib/data/courses";
|
||||
import { pageMetadata, truncateMetaDescription } from "@/lib/seo/metadata";
|
||||
|
||||
type Props = { params: Promise<{ slug: string }> };
|
||||
|
||||
@@ -10,10 +11,15 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const course = await getCourseById(slug);
|
||||
if (!course) return { title: "دوره یافت نشد" };
|
||||
return {
|
||||
const pathSlug = course.slug || slug;
|
||||
return pageMetadata({
|
||||
title: course.title,
|
||||
description: course.seoDescription || course.summary,
|
||||
};
|
||||
description: truncateMetaDescription(
|
||||
course.seoDescription || course.summary,
|
||||
),
|
||||
path: `/register/${pathSlug}`,
|
||||
...(course.posterImageUrl ? { image: course.posterImageUrl } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
export default async function CourseRegisterPage({ params }: Props) {
|
||||
|
||||
Reference in new issue
Block a user